changeSettings method
Future<bool>
changeSettings({
- LocationAccuracy? accuracy,
- int? interval,
- double? distanceFilter,
- bool? pausesLocationUpdatesAutomatically,
override
Change settings of the location request.
The accuracy
argument is controlling the precision of the
LocationData
. The interval
and distanceFilter
are controlling how
often a new location is sent through onLocationChanged. The
pausesLocationUpdatesAutomatically
argument indicates whether the
underlying location manager object may pause location updates.
Implementation
@override
Future<bool> changeSettings({
LocationAccuracy? accuracy,
int? interval,
double? distanceFilter,
bool? pausesLocationUpdatesAutomatically,
}) async {
_accuracy = accuracy;
return true;
}