SmoothStarRating constructor
SmoothStarRating(- {int starCount = 5,
- bool isReadOnly = false,
- double spacing = 0.0,
- double rating = 0.0,
- IconData defaultIconData = Icons.star_border,
- RatingChangeCallback onRated,
- Color color,
- Color borderColor,
- double size = 25,
- IconData filledIconData = Icons.star,
- IconData halfFilledIconData = Icons.star_half,
- 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);
}