NiceRating constructor

const NiceRating({
  1. Key? key,
  2. required double value,
  3. ValueChanged<double>? onChanged,
  4. int max = 5,
  5. IconData icon = Icons.star,
  6. IconData emptyIcon = Icons.star_border,
  7. IconData halfIcon = Icons.star_half,
  8. double size = 28,
  9. Color? color,
  10. bool allowHalf = false,
  11. bool readOnly = false,
  12. String? label,
})

Implementation

const NiceRating({
  super.key,
  required this.value,
  this.onChanged,
  this.max = 5,
  this.icon = Icons.star,
  this.emptyIcon = Icons.star_border,
  this.halfIcon = Icons.star_half,
  this.size = 28,
  this.color,
  this.allowHalf = false,
  this.readOnly = false,
  this.label,
});