ModulaRatingDisplay.icon constructor
const
ModulaRatingDisplay.icon({
- required double rating,
- Key? key,
- int maxRating = 5,
- double iconSize = 24.0,
- double spacing = 4.0,
- bool allowHalfRating = false,
- bool readOnly = true,
- ValueChanged<
double> ? onRatingChanged, - IconData? filledIcon = Icons.star,
- IconData? emptyIcon = Icons.star_border,
- Color? filledColor = Colors.amber,
- 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;