onRemovefeature property

Stream<DataRemoveFeatureEvent> get onRemovefeature

Implementation

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