TRating constructor

const TRating({
  1. Key? key,
  2. double? value = 0,
  3. ValueNotifier<double?>? valueNotifier,
  4. ValueChanged<double?>? onValueChanged,
  5. FocusNode? focusNode,
  6. String? label,
  7. bool isRequired = false,
  8. List<String? Function(double?)>? rules,
  9. Duration? validationDebounce,
  10. int itemCount = 5,
  11. double itemSize = 24.0,
  12. Color? color,
  13. Color? unratedColor,
  14. IconData ratedIcon = Icons.star,
  15. IconData unratedIcon = Icons.star_border,
  16. bool disabled = false,
  17. 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,
});