onMarkercomplete property
Implementation
Stream<Marker> get onMarkercomplete {
late StreamController<Marker> sc; // ignore: close_sinks
late MapsEventListener mapsEventListener;
void start() => mapsEventListener = Event.addListener(
this,
'markercomplete',
(Marker marker) => sc.add(marker),
);
void stop() => mapsEventListener.remove();
sc = StreamController<Marker>(
onListen: start,
onCancel: stop,
onResume: start,
onPause: stop,
);
return sc.stream;
}