ComicRating constructor

const ComicRating({
  1. Key? key,
  2. required String label,
  3. required int value,
  4. int of = 5,
  5. ValueChanged<int>? onChanged,
  6. double size = 28,
  7. bool clearable = true,
})

Creates a rating input.

Implementation

const ComicRating({
  super.key,
  required this.label,
  required this.value,
  this.of = 5,
  this.onChanged,
  this.size = 28,
  this.clearable = true,
}) : assert(value >= 0 && value <= of);