onAddfeature property

Stream<DataAddFeatureEvent> get onAddfeature

Implementation

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