onPlaceChanged property

Stream<void> get onPlaceChanged

Implementation

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