RatingStyle enum
The style of a Rating.
Values
- none → const RatingStyle
-
Indicates a rating style is not supported.
A Rating will never have this type, but can be used by other classes to indicate they do not support Rating.
- heart → const RatingStyle
-
A rating style with a single degree of rating, "heart" vs "no heart".
Can be used to indicate the content referred to is a favorite (or not).
- thumbUpDown → const RatingStyle
-
A rating style for "thumb up" vs "thumb down".
- range3stars → const RatingStyle
-
A rating style with 0 to 3 stars.
- range4stars → const RatingStyle
-
A rating style with 0 to 4 stars.
- range5stars → const RatingStyle
-
A rating style with 0 to 5 stars.
- percentage → const RatingStyle
-
A rating style expressed as a percentage.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Constants
-
values
→ const List<
RatingStyle> - A constant List of the values in this enum, in order of their declaration.