TRating constructor
const
TRating({
- Key? key,
- double? value = 0,
- ValueNotifier<
double?> ? valueNotifier, - ValueChanged<
double?> ? onValueChanged, - FocusNode? focusNode,
- String? label,
- bool isRequired = false,
- List<
String? Function(double?)> ? rules, - Duration? validationDebounce,
- int itemCount = 5,
- double itemSize = 24.0,
- Color? color,
- Color? unratedColor,
- IconData ratedIcon = Icons.star,
- IconData unratedIcon = Icons.star_border,
- bool disabled = false,
- bool allowHalfRating = false,
Implementation
const TRating({
super.key,
this.value = 0,
this.valueNotifier,
this.onValueChanged,
this.focusNode,
this.label,
this.isRequired = false,
this.rules,
this.validationDebounce,
this.itemCount = 5,
this.itemSize = 24.0,
this.color,
this.unratedColor,
this.ratedIcon = Icons.star,
this.unratedIcon = Icons.star_border,
this.disabled = false,
this.allowHalfRating = false,
});