CapacityIndicator constructor
const
CapacityIndicator({})
Creates a capacity indicator.
value must be in range of 0 to 100.
Implementation
const CapacityIndicator({
super.key,
required this.value,
this.onChanged,
this.discrete = false,
this.splits = 10,
this.color = CupertinoColors.systemGreen,
this.borderColor = CupertinoColors.tertiaryLabel,
this.backgroundColor = CupertinoColors.tertiarySystemGroupedBackground,
this.semanticLabel,
}) : assert(value >= 0 && value <= 100);