onUpdate property

Implementation

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