JsonMaterialStateProperty<T extends Object> class

Helper class that allows to expose values of MaterialPropertyResolver in form of type-safe Map<MaterialState?, T> instead of Instance of '_MaterialStatePropertyWith' via toString() call.

Implemented types
Annotations

Constructors

JsonMaterialStateProperty(Map<MaterialState?, T> map)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
map Map<MaterialState?, T>
Map containing MaterialState? and it's corresponding T values.
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?
Copies the behavior of the ThemeDecoder's decodeMaterialStateProperty* through MaterialState.values.
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited