BatteryStats constructor
- double gpsOnTimePercent = 0,
- int locationUpdatesCount = 0,
- int syncRequestsCount = 0,
- double averageAccuracyMeters = 0,
- int trackingDurationMinutes = 0,
- double? estimatedDrainPercent,
- OptimizationLevel optimizationLevel = OptimizationLevel.none,
- Map<
String, Duration> timeByState = const {}, - int? currentBatteryLevel,
- bool? isCharging,
- int accuracyDowngradeCount = 0,
- int gpsDisabledCount = 0,
Creates battery statistics.
Implementation
const BatteryStats({
this.gpsOnTimePercent = 0,
this.locationUpdatesCount = 0,
this.syncRequestsCount = 0,
this.averageAccuracyMeters = 0,
this.trackingDurationMinutes = 0,
this.estimatedDrainPercent,
this.optimizationLevel = OptimizationLevel.none,
this.timeByState = const {},
this.currentBatteryLevel,
this.isCharging,
this.accuracyDowngradeCount = 0,
this.gpsDisabledCount = 0,
});