CustomRating constructor

const CustomRating({
  1. int max = 5,
  2. double score = 0,
  3. Star star = const Star(),
  4. required dynamic onRating(
    1. double
    ),
  5. Key? key,
})

Implementation

const CustomRating(
     {this.max = 5,
     this.score = 0,
     this.star = const Star(),
     required this.onRating,Key? key})
     :super(key: key);