StateValues<T> class
final
A value per widget state, as a property gives it with a map
({ default: primary, hovered: secondary, disabled: grey }): the
value of the strongest state the widget is in (themeStatePrecedence)
that has one, else the default one, else null, which makes the
component keep Flutter's own value. Internal to the starter.
- Inheritance
-
- Object
- WidgetStateProperty<
T?> - StateValues
- Annotations
Constructors
-
StateValues(Map<
WidgetState, T> values, [T? fallback]) -
The values by state;
fallbackis thedefault.
Properties
- fallback → T?
-
The
defaultvalue.final - hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
values
→ Map<
WidgetState, T> -
The value of each state that has one.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
Set< WidgetState> states) → T? -
Returns a value of type
Tthat depends onstates.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override