RatingBarWidget constructor

RatingBarWidget({
  1. int itemCount = 5,
  2. double spacing = 0.0,
  3. double rating = 0.0,
  4. IconData? defaultIconData,
  5. required RatingChangeCallback? onRatingChanged,
  6. Color? activeColor = Colors.yellow,
  7. Color? inActiveColor,
  8. double size = 25,
  9. IconData? filledIconData,
  10. IconData? halfFilledIconData,
  11. bool allowHalfRating = false,
  12. bool disable = false,
  13. Key? key,
})

Implementation

RatingBarWidget({
  this.itemCount = 5,
  this.spacing = 0.0,
  this.rating = 0.0,
  this.defaultIconData,
  required this.onRatingChanged,
  this.activeColor = Colors.yellow,
  this.inActiveColor,
  this.size = 25,
  this.filledIconData,
  this.halfFilledIconData,
  this.allowHalfRating = false,
  this.disable = false,
  super.key,
});