ComRating constructor

const ComRating({
  1. Key? key,
  2. double rating = 0.0,
  3. int starCount = 5,
  4. double starSize = 24.0,
  5. Color filledColor = Colors.amber,
  6. Color unfilledColor = Colors.grey,
  7. bool allowHalfStar = true,
  8. double spacing = 2.0,
  9. ValueChanged<double>? onRatingChanged,
  10. Widget? filledIcon,
  11. Widget? unfilledIcon,
  12. Widget? halfFilledIcon,
})

Implementation

const ComRating({
  super.key,
  this.rating = 0.0,
  this.starCount = 5,
  this.starSize = 24.0,
  this.filledColor = Colors.amber,
  this.unfilledColor = Colors.grey,
  this.allowHalfStar = true,
  this.spacing = 2.0,
  this.onRatingChanged,
  this.filledIcon,
  this.unfilledIcon,
  this.halfFilledIcon,
});