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 e) => sc.add(e)).toJS,
);
void stop() => mapsEventListener.remove();
sc = StreamController<OverlayCompleteEvent>(
onListen: start,
onCancel: stop,
onResume: start,
onPause: stop,
);
return sc.stream;
}