onPolylinecomplete property

Stream<Polyline> get onPolylinecomplete

Implementation

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