LocationSettings constructor

const LocationSettings({
  1. LocationAccuracy accuracy = LocationAccuracy.high,
  2. double distanceFilter = 10.0,
  3. int? timeInterval,
  4. bool enableBackgroundTracking = false,
  5. bool showBackgroundNotification = true,
  6. String? notificationTitle = 'Location Tracking',
  7. String? notificationText = 'Tracking your location in background',
  8. bool pauseLocationUpdatesAutomatically = false,
  9. bool allowMockLocations = false,
})

Implementation

const LocationSettings({
  this.accuracy = LocationAccuracy.high,
  this.distanceFilter = 10.0,
  this.timeInterval,
  this.enableBackgroundTracking = false,
  this.showBackgroundNotification = true,
  this.notificationTitle = 'Location Tracking',
  this.notificationText = 'Tracking your location in background',
  this.pauseLocationUpdatesAutomatically = false,
  this.allowMockLocations = false,
});