RatingIndicator constructor
const
RatingIndicator({})
Creates a rating indicator.
iconSize
must be non-negative.
amount
must be greater than 0
value
must be in range of 0 to amount
Implementation
const RatingIndicator({
super.key,
required this.value,
this.amount = 5,
this.ratedIcon = CupertinoIcons.star_fill,
this.unratedIcon = CupertinoIcons.star,
this.iconColor,
this.iconSize = 16,
this.onChanged,
this.semanticLabel,
}) : assert(iconSize >= 0),
assert(amount > 0),
assert(value >= 0 && value <= amount);