onUpdate property

Implementation

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