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
Annotations

Constructors

StateValues(Map<WidgetState, T> values, [T? fallback])
The values by state; fallback is the default.

Properties

fallback → T?
The default value.
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 T that depends on states.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override