SimpleStarRating constructor

SimpleStarRating({
  1. int starCount = 5,
  2. bool isReadOnly = true,
  3. double spacing = 0.0,
  4. double rating = 0.0,
  5. RatingChangeCallback? onRated,
  6. double size = 25,
  7. bool allowHalfRating = true,
  8. Widget? filledIcon,
  9. Widget? nonFilledIcon,
})

Implementation

SimpleStarRating({
  this.starCount = 5,
  this.isReadOnly = true,
  this.spacing = 0.0,
  this.rating = 0.0,
  this.onRated,
  this.size = 25,
  this.allowHalfRating = true,
  this.filledIcon,
  this.nonFilledIcon,
}) {
  assert(this.rating != null);
}