onSetAt property

Stream<List> get onSetAt

Implementation

Stream<List> get onSetAt {
  late StreamController<List> sc; // ignore: close_sinks
  late MapsEventListener mapsEventListener;
  void start() => mapsEventListener = Event.addListener(
        this,
        'set_at',
        (num index, T previous) => sc.add([index, previous]),
      );
  void stop() => mapsEventListener.remove();
  sc = StreamController<List>(
    onListen: start,
    onCancel: stop,
    onResume: start,
    onPause: stop,
  );
  return sc.stream;
}