onLocationChanged property
Returns a stream of LocationData
objects.
The frequency and accuracy of this stream can be changed with
changeSettings
Throws an error if the app has no permission to access location.
Implementation
@override
Stream<LocationData> get onLocationChanged {
return _geolocation
.watchPosition(
enableHighAccuracy: _accuracy!.index >= LocationAccuracy.high.index)
.map(_toLocationData);
}