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)).toJS,
);
void stop() => mapsEventListener.remove();
sc = StreamController<void>(
onListen: start,
onCancel: stop,
onResume: start,
onPause: stop,
);
return sc.stream;
}