onCloseclick property

Stream<Object> get onCloseclick

Implementation

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