RatingBar constructor

RatingBar(
  1. {int starCount = 5,
  2. double rating = 0.0,
  3. Color color,
  4. Widget icon,
  5. double size,
  6. RatingChangeCallBack onRatingCallback,
  7. VoidCallback clickedCallbackAsIndicator,
  8. bool isIndicator = false,
  9. double spacing = 0.0,
  10. bool allowHalfRating = true}
)

Implementation

RatingBar(
    {this.starCount = 5,
    this.rating = 0.0,
    this.color,
    this.icon,
    this.size,
    this.onRatingCallback,
    this.clickedCallbackAsIndicator,
    this.isIndicator = false,
    this.spacing = 0.0,
    this.allowHalfRating = true}) {
  assert(this.rating != null);
  assert(this.size != null);
}