invoke

operator fun invoke(routeNumber: String, licensePlate: String, driver: String): Flow<Resource<Transport>>

Invokes the use case to update a transport with the provided route number, license plate, and driver name.

Return

A Flow emitting Resource states containing the updated transport or an error.

Parameters

routeNumber

The route number associated with the transport.

licensePlate

The license plate number to be set for the transport.

driver

The name of the driver to be set for the transport.