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