StateProperty<States, ResolverType> class abstract

Constructors

StateProperty()

Properties

hashCode int
The hash code for this object.
no setterinherited
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<States> states) → ResolverType?
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

all<States, ResolverType>(StatelessResolver<ResolverType> resolver) StateProperty<States, ResolverType>
Resolves the given behavior independent of the current state of the system.
never<States>() StateProperty<States, Null>
Resolves null as the behavior independent of the current state of the system.
resolveState<States, ResolverType>(StatelessResolver<ResolverType> resolver, States state) StateProperty<States, ResolverType>
Resolves the given behavior when in the provided state, otherwise null.
resolveWith<States, ResolverType>(StatefulResolver<States, ResolverType> resolver) StateProperty<States, ResolverType>
The most flexible StateProperty that allows for dynamically resolving behavior based on the provided set of states.