RatingBarFlutter.readOnly constructor
RatingBarFlutter.readOnly({
- Key? key,
- int maxRating = 5,
- required IconData filledIcon,
- required IconData emptyIcon,
- IconData? halfFilledIcon,
- bool isHalfAllowed = false,
- Alignment aligns = Alignment.centerLeft,
- double initialRating = 0.0,
- Color? filledColor,
- Color emptyColor = Colors.grey,
- Color? halfFilledColor,
- double size = 40,
Implementation
RatingBarFlutter.readOnly({
Key? key,
this.maxRating = 5,
required this.filledIcon,
required this.emptyIcon,
this.halfFilledIcon,
this.isHalfAllowed = false,
this.aligns = Alignment.centerLeft,
this.initialRating = 0.0,
this.filledColor,
this.emptyColor = Colors.grey,
this.halfFilledColor,
this.size = 40,
}) : _readOnly = true,
onRatingChanged = null,
assert(!isHalfAllowed || halfFilledIcon != null),
super(key: key);