CardRating constructor

const CardRating({
  1. Key? key,
  2. required double rating,
  3. int maxRating = 5,
  4. double starSize = 16.0,
  5. Color? filledColor,
  6. Color? emptyColor,
  7. bool showRatingNumber = true,
  8. String? customText,
  9. TextStyle? textStyle,
  10. double spacing = 2.0,
  11. ValueChanged<double>? onRatingChanged,
})

Implementation

const CardRating({
  Key? key,
  required this.rating,
  this.maxRating = 5,
  this.starSize = 16.0,
  this.filledColor,
  this.emptyColor,
  this.showRatingNumber = true,
  this.customText,
  this.textStyle,
  this.spacing = 2.0,
  this.onRatingChanged,
}) : super(key: key);