RatingWidget constructor

const RatingWidget({
  1. required double rating,
  2. int maxRating = 5,
  3. double size = 24,
  4. ValueChanged<double>? onRatingChanged,
  5. bool allowHalfRating = true,
  6. Color? color,
  7. Key? key,
})

Creates a RatingWidget.

Implementation

const RatingWidget({
  required this.rating,
  this.maxRating = 5,
  this.size = 24,
  this.onRatingChanged,
  this.allowHalfRating = true,
  this.color,
  super.key,
});