TraccarConfigs constructor

TraccarConfigs({
  1. required String deviceId,
  2. required String serverUrl,
  3. int? interval = 10000,
  4. int? distance = 0,
  5. int? angle = 0,
  6. AccuracyLevel accuracy = AccuracyLevel.high,
  7. bool? offlineBuffering = true,
  8. bool? wakelock = true,
  9. String? notificationIcon,
})

Creates a TraccarConfigs object with the specified parameters.

All required parameters must be provided, while optional ones have default values.

Implementation

TraccarConfigs({
  required this.deviceId,
  required this.serverUrl,
  this.interval = 10000,
  this.distance = 0,
  this.angle = 0,
  this.accuracy = AccuracyLevel.high,
  this.offlineBuffering = true,
  this.wakelock = true,
  this.notificationIcon,
});