FastWidgetStateProperty<T> class

Create a WidgetStateProperty using only a map of WidgetStates

Inheritance

Constructors

FastWidgetStateProperty(Map<WidgetState, T> resolution, {T? defaultValue})
Constructor

Properties

defaultValue → T?
The value to use if no match is found in resolution
final
hashCode int
The hash code for this object.
no setterinherited
resolution Map<WidgetState, T>
The map used to resolve the property
final
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
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.
inherited