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

events Stream<TripEvent>
Stream of trip events.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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