RatingIcon constructor

const RatingIcon({
  1. Key? key,
  2. required double rating,
  3. Color? ratedColor,
  4. Color? unratedColor,
  5. IconData icon = kRatingBarIcon,
  6. double? size,
})

Implementation

const RatingIcon({
  super.key,
  required this.rating,
  this.ratedColor,
  this.unratedColor,
  this.icon = kRatingBarIcon,
  this.size,
}) : assert(rating >= 0.0 && rating <= 1.0);