TripServiceImpl class
Implementation of TripService using method channel.
- Implemented types
Constructors
- TripServiceImpl(LocusInterface _instanceProvider())
- Creates a trip service with the given Locus interface provider.
Properties
Methods
-
getState(
) → TripState? -
Gets the current trip state.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onEvent(
void callback(TripEvent event), {Function? onError}) → StreamSubscription< TripEvent> -
Subscribes to trip events.
override
-
start(
TripConfig config) → Future< void> -
Starts a new trip with the given configuration.
override
-
stop(
) → TripSummary? -
Stops the current trip and returns a summary.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited