BatteryStatCard constructor

const BatteryStatCard({
  1. Key? key,
  2. required GaugeController controller,
  3. String label = 'BATTERY',
  4. Color accentColor = const Color(0xFF34D399),
  5. Color lowColor = const Color(0xFFFBBF24),
  6. Color criticalColor = const Color(0xFFEF4444),
  7. double lowThreshold = 30,
  8. double criticalThreshold = 15,
  9. double ringSize = 96,
  10. bool showGlow = true,
  11. DashboardCardStyle cardStyle = const DashboardCardStyle(),
  12. GaugeMode? mode,
})

Implementation

const BatteryStatCard({
  super.key,
  required this.controller,
  this.label = 'BATTERY',
  this.accentColor = const Color(0xFF34D399),
  this.lowColor = const Color(0xFFFBBF24),
  this.criticalColor = const Color(0xFFEF4444),
  this.lowThreshold = 30,
  this.criticalThreshold = 15,
  this.ringSize = 96,
  this.showGlow = true,
  this.cardStyle = const DashboardCardStyle(),
  this.mode,
});