invoke

operator fun invoke(routeNumber: String): Flow<Resource<String>>

Invokes the use case to select a route and create a new transport instance.

Return

A Flow emitting Resource states containing the selected route number or an error.

Parameters

routeNumber

The route number to be associated with the new transport.