CapacityIndicatorCell constructor

const CapacityIndicatorCell({
  1. Key? key,
  2. double value = 100,
  3. Color color = CupertinoColors.systemGreen,
  4. Color borderColor = CupertinoColors.tertiaryLabel,
  5. Color backgroundColor = CupertinoColors.tertiarySystemGroupedBackground,
})

Creates a capacity indicator cell.

value must be in the range of 0 to 100

Implementation

const CapacityIndicatorCell({
  super.key,
  this.value = 100,
  this.color = CupertinoColors.systemGreen,
  this.borderColor = CupertinoColors.tertiaryLabel,
  this.backgroundColor = CupertinoColors.tertiarySystemGroupedBackground,
}) : assert(value >= 0 && value <= 100);