FastMaterialStateProperty<T> class

Create a MaterialStateProperty using only a map of MaterialStates

Inheritance

Constructors

FastMaterialStateProperty(Map<MaterialState, 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<MaterialState, 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<MaterialState> 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