RatingBar constructor

const RatingBar({
  1. Key? key,
  2. required double rating,
  3. double size = 30,
  4. Color activeColor = Colors.black54,
  5. Color inactiveColor = Colors.grey,
})

Implementation

const RatingBar({super.key,
  required this.rating,
  this.size = 30,
  this.activeColor = Colors.black54,
  this.inactiveColor = Colors.grey,
}) : assert(rating >= 0 && rating <= 5);