Config constructor
Config({
- LocationConfig? location,
- String? serverUrl,
- Map<
String, dynamic> ? params, - Map<
String, dynamic> ? headers, - bool? stopOnTerminate,
- bool? debug,
- 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,
);