onOverlaycomplete property

Stream<OverlayCompleteEvent> get onOverlaycomplete

Implementation

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