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