onPolygoncomplete property

Stream<Polygon> get onPolygoncomplete

Implementation

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