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