changeSettings method

  1. @override
Future<bool> changeSettings({
  1. LocationAccuracy? accuracy,
  2. int? interval,
  3. double? distanceFilter,
})
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.

Implementation

@override
Future<bool> changeSettings({
  LocationAccuracy? accuracy,
  int? interval,
  double? distanceFilter,
}) async {
  _accuracy = accuracy;
  return true;
}