defaultConfig property Null safety

Config defaultConfig
final

Default config

Implementation

static final defaultConfig = Config(
  // we need the highest possible accuracy
  desiredAccuracy: Config.DESIRED_ACCURACY_NAVIGATION,

  // make odometer only use locations with accuracy above desired for its calculations / updates
  desiredOdometerAccuracy: 70,

  // Ignore locations that have moved greater than or equal to this speed
  // from the previous location (in m/s).
  speedJumpFilter: 35.kmhToMps().toInt(),
  /**
   * deliver a location each ...
   * from remote config it is 10 (meters) for both ios and android
   */
  distanceFilter: 10.0,
  /**
   * Disable the stop detection completely - we handle the stop / start state by our self.
   */
  disableStopDetection: true,
  /**
   * As long as the Background Geolocation is started we don't need any automatic stops
   */
  pausesLocationUpdatesAutomatically: false,

  /**
   * Debug when debugging is enabled
   * (Way more logs and some sounds)
   */
  debug: false,

  /**
   * Loglevel
   */
  logLevel: Config.LOG_LEVEL_ERROR,

  /**
   * Our desired GPS authorisation
   */
  locationAuthorizationRequest: 'Always',

  /**
   * Activity settings
   */
  stopTimeout: 1,
  activityType: Config.ACTIVITY_TYPE_FITNESS,
  preventSuspend: false,
  heartbeatInterval: 10,

  stationaryRadius: 5,
  disableElasticity: true,

  activityRecognitionInterval: 5000,
  minimumActivityRecognitionConfidence: 75,

  /**
   * Don't go into background
   */
  stopOnTerminate: true,
  startOnBoot: false,
  foregroundService: false,

  /**
   * Persistence
   */
  maxDaysToPersist: 5,
  persistMode: Config.PERSIST_MODE_ALL,
);