PrismRating constructor

const PrismRating({
  1. Key? key,
  2. required double value,
  3. ValueChanged<double>? onChanged,
  4. int max = 5,
  5. bool allowHalf = false,
  6. double? size,
  7. Color? color,
  8. String? label,
  9. String? readOnlyLabel,
  10. bool showValue = false,
  11. PrismSemantic semantic = PrismSemantic.warning,
})

Creates a rating control.

Implementation

const PrismRating({
  super.key,
  required this.value,
  this.onChanged,
  this.max = 5,
  this.allowHalf = false,
  this.size,
  this.color,
  this.label,
  this.readOnlyLabel,
  this.showValue = false,
  this.semantic = PrismSemantic.warning,
});