ModulaRatingDisplay.icon constructor

const ModulaRatingDisplay.icon({
  1. required double rating,
  2. Key? key,
  3. int maxRating = 5,
  4. double iconSize = 24.0,
  5. double spacing = 4.0,
  6. bool allowHalfRating = false,
  7. bool readOnly = true,
  8. ValueChanged<double>? onRatingChanged,
  9. IconData? filledIcon = Icons.star,
  10. IconData? emptyIcon = Icons.star_border,
  11. Color? filledColor = Colors.amber,
  12. Color? emptyColor = Colors.grey,
})

Implementation

const ModulaRatingDisplay.icon({
  required this.rating,
  super.key,
  this.maxRating = 5,
  this.iconSize = 24.0,
  this.spacing = 4.0,
  this.allowHalfRating = false,
  this.readOnly = true,
  this.onRatingChanged,
  this.filledIcon = Icons.star,
  this.emptyIcon = Icons.star_border,
  this.filledColor = Colors.amber,
  this.emptyColor = Colors.grey,
})  : type = ModulaRatingType.iconBased,
      ratingIcons = null,
      ratingImages = null;