RelevanceIndicator constructor
const
RelevanceIndicator({})
Creates a relevance indicator.
value must be in range of 0 to amount
amount must be non-null and greater than 0
Implementation
const RelevanceIndicator({
super.key,
required this.value,
this.amount = 20,
this.barHeight = 20,
this.barWidth = 0.8,
this.selectedColor = CupertinoColors.label,
this.unselectedColor = CupertinoColors.secondaryLabel,
this.semanticLabel,
}) : assert(value >= 0 && value <= amount),
assert(amount > 0),
assert(barHeight >= 0),
assert(barWidth >= 0);