DesignRating constructor
const
DesignRating({
- Key? key,
- required double value,
- required ValueChanged<
double> ? onChanged, - required DesignRatingItemBuilder itemBuilder,
- int itemCount = 5,
- bool allowHalf = false,
- bool readOnly = false,
- DesignRatingLayoutBuilder? layoutBuilder,
- ValueChanged<
double> ? onChangeStart, - ValueChanged<
double> ? onChangeEnd, - String? semanticLabel,
- String semanticFormatterCallback(
- double value
- FocusNode? focusNode,
- bool autofocus = false,
- MouseCursor? mouseCursor,
A rating showing value.
Implementation
const DesignRating({
super.key,
required this.value,
required this.onChanged,
required this.itemBuilder,
this.itemCount = 5,
this.allowHalf = false,
this.readOnly = false,
this.layoutBuilder,
this.onChangeStart,
this.onChangeEnd,
this.semanticLabel,
this.semanticFormatterCallback,
this.focusNode,
this.autofocus = false,
this.mouseCursor,
}) : assert(itemCount > 0),
assert(value >= 0 && value <= itemCount);