ModulaRatingDisplay.multiIcon constructor

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

Implementation

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