LocationSettings constructor
const
LocationSettings({
- LocationAccuracy accuracy = LocationAccuracy.high,
- double distanceFilter = 10.0,
- int? timeInterval,
- bool enableBackgroundTracking = false,
- bool showBackgroundNotification = true,
- String? notificationTitle = 'Location Tracking',
- String? notificationText = 'Tracking your location in background',
- bool pauseLocationUpdatesAutomatically = false,
- 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,
});