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