onInsertAt property

Stream<num> get onInsertAt

Implementation

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