AppleSettings constructor

AppleSettings({
  1. bool pauseLocationUpdatesAutomatically = false,
  2. ActivityType activityType = ActivityType.other,
  3. LocationAccuracy accuracy = LocationAccuracy.best,
  4. int distanceFilter = 0,
  5. Duration? timeLimit,
  6. bool showBackgroundLocationIndicator = false,
  7. bool allowBackgroundLocationUpdates = true,
})

Initializes a new AppleSettings instance with default values.

The following default values are used:

  • pauseLocationUpdatesAutomatically: false
  • activityType: ActivityType.other

Implementation

AppleSettings({
  this.pauseLocationUpdatesAutomatically = false,
  this.activityType = ActivityType.other,
  super.accuracy,
  super.distanceFilter,
  super.timeLimit,
  this.showBackgroundLocationIndicator = false,
  this.allowBackgroundLocationUpdates = true,
});