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