DesignRatingItemDetails class
One item of a DesignRating, as the look paints it.
- Annotations
Constructors
-
DesignRatingItemDetails({required int index, required double fill, required bool isPreview, required Set<
WidgetState> states}) -
An item's details.
const
Properties
- fill → double
-
How much of it the value shown covers, 0 to 1: 0, 0.5 or 1, or any
fraction of a value such as an average of 3.7.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
Its place in the row, from 0, in reading order.
final
- isPreview → bool
-
Whether fill shows where a hovering pointer would set the rating,
not its value.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
states
→ Set<
WidgetState> -
The rating's states: WidgetState.focused, WidgetState.hovered,
WidgetState.disabled, and WidgetState.pressed on the item under
the held pointer as it presses or drags.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited