ZeroRating constructor
const
ZeroRating({
- Key? key,
- int itemCount = 5,
- double initialValue = 1,
- double minValue = 0,
- bool allowHalfRating = true,
- ValueChanged<
double> ? onRatingUpdate, - bool isDisabled = false,
- ZeroSizeType sizeType = ZeroSizeType.medium,
- RatingWidget? ratingWidget,
- ZeroRatingStyle? style,
Implementation
const ZeroRating({
super.key,
this.itemCount = 5,
this.initialValue = 1,
this.minValue = 0,
this.allowHalfRating = true,
this.onRatingUpdate,
this.isDisabled = false,
this.sizeType = ZeroSizeType.medium,
this.ratingWidget,
this.style,
}) : assert(itemCount > 0),
assert(initialValue >= minValue),
assert(initialValue <= itemCount),
assert(minValue >= 0),
assert(minValue <= itemCount);