SmoothStarRating constructor

SmoothStarRating(
  1. {int starCount = 5,
  2. bool isReadOnly = false,
  3. double spacing = 0.0,
  4. double rating = 0.0,
  5. IconData defaultIconData = Icons.star_border,
  6. RatingChangeCallback onRated,
  7. Color color,
  8. Color borderColor,
  9. double size = 25,
  10. IconData filledIconData = Icons.star,
  11. IconData halfFilledIconData = Icons.star_half,
  12. bool allowHalfRating = true}
)

Implementation

SmoothStarRating({
  this.starCount = 5,
  this.isReadOnly = false,
  this.spacing = 0.0,
  this.rating = 0.0,
  this.defaultIconData = Icons.star_border,
  this.onRated,
  this.color,
  this.borderColor,
  this.size = 25,
  this.filledIconData = Icons.star,
  this.halfFilledIconData = Icons.star_half,
  this.allowHalfRating = true,
}) {
  assert(this.rating != null);
}