Config constructor

Config({
  1. LocationConfig? location,
  2. String? serverUrl,
  3. Map<String, dynamic>? params,
  4. Map<String, dynamic>? headers,
  5. bool? stopOnTerminate,
  6. bool? debug,
  7. CoffeeBackgroundNotification? notification,
})

Implementation

Config(
  {
  // Geolocation Options
  this.location,
  // HTTP & Persistence
  this.serverUrl,
  this.params,
  this.headers,
  // Application
  this.stopOnTerminate,
  this.debug,
  // Application Options
  this.notification
}): super(
  distanceFilter: location?.distanceFilter,
  maxAcceptableAccuracy: location?.maxAcceptableAccuracy,
  maxAcceptableSpeedAccuracy: location?.maxAcceptableSpeedAccuracy,
  locationUpdateInterval: location?.locationUpdateInterval,
  fastestLocationUpdateInterval: location?.fastestLocationUpdateInterval,
);