onPlacesChanged property

Stream<void> get onPlacesChanged

Implementation

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