UIRatingBarIndicator constructor

const UIRatingBarIndicator({
  1. Key? key,
  2. required double rating,
  3. UIRatingWidget? ratingWidget,
  4. int itemCount = 5,
  5. Axis direction = Axis.horizontal,
  6. bool allowHalfRating = true,
  7. EdgeInsetsGeometry itemPadding = EdgeInsets.zero,
  8. double itemSize = 24,
  9. Color? filledColor,
  10. Color? emptyColor,
})

Creates a UIRatingBarIndicator with a fixed ratingWidget for every item.

Implementation

const UIRatingBarIndicator({
  super.key,
  required this.rating,
  this.ratingWidget,
  this.itemCount = 5,
  this.direction = Axis.horizontal,
  this.allowHalfRating = true,
  this.itemPadding = EdgeInsets.zero,
  this.itemSize = 24,
  this.filledColor,
  this.emptyColor,
}) : itemBuilder = null;