RatingStyle enum Null safety
The style of a Rating.
Constructors
- RatingStyle()
-
const
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.
const RatingStyle(0)
- 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).
const RatingStyle(1)
- thumbUpDown → const RatingStyle
-
A rating style for "thumb up" vs "thumb down".
const RatingStyle(2)
- range3stars → const RatingStyle
-
A rating style with 0 to 3 stars.
const RatingStyle(3)
- range4stars → const RatingStyle
-
A rating style with 0 to 4 stars.
const RatingStyle(4)
- range5stars → const RatingStyle
-
A rating style with 0 to 5 stars.
const RatingStyle(5)
- percentage → const RatingStyle
-
A rating style expressed as a percentage.
const RatingStyle(6)
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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.
[none, heart, thumbUpDown, range3stars, range4stars, range5stars, percentage]