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