onUpdate property

Implementation

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