ZeroRating constructor

const ZeroRating({
  1. Key? key,
  2. int itemCount = 5,
  3. double initialValue = 1,
  4. double minValue = 0,
  5. bool allowHalfRating = true,
  6. ValueChanged<double>? onRatingUpdate,
  7. bool isDisabled = false,
  8. ZeroSizeType sizeType = ZeroSizeType.medium,
  9. RatingWidget? ratingWidget,
  10. 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);