estimatedDrainPerHour property

double? get estimatedDrainPerHour

Estimated drain per hour based on current patterns.

Calculated from: estimatedDrainPercent / (trackingDurationMinutes / 60)

Implementation

double? get estimatedDrainPerHour {
  if (estimatedDrainPercent == null || trackingDurationMinutes < 1) {
    return null;
  }
  return estimatedDrainPercent! / (trackingDurationMinutes / 60);
}