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