isDriverNameValid

fun isDriverNameValid(hasDriverName: Boolean, hasLicensePlate: Boolean)

Checks if the entered driver name and license plate are valid and performs the necessary actions.

Validates the driver name and license plate using various validation methods. Updates the TransportUiState with any validation errors and invokes the updateLocalTransport method if there are no validation errors.

Parameters

hasDriverName

true if the driver name is provided; otherwise, false.

hasLicensePlate

true if the license plate is provided; otherwise, false.