RatingIcon constructor

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

Implementation

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