onUpdate property
Stream<FleetEngineTripLocationProviderUpdateEvent>
get
onUpdate
Implementation
Stream<FleetEngineTripLocationProviderUpdateEvent> get onUpdate {
late StreamController<FleetEngineTripLocationProviderUpdateEvent>
sc; // ignore: close_sinks
late MapsEventListener mapsEventListener;
void start() => mapsEventListener = event.addListener(
this,
'update',
((FleetEngineTripLocationProviderUpdateEvent e) => sc.add(e)).toJS,
);
void stop() => mapsEventListener.remove();
sc = StreamController<FleetEngineTripLocationProviderUpdateEvent>(
onListen: start,
onCancel: stop,
onResume: start,
onPause: stop,
);
return sc.stream;
}