DrivenProperty<T> class abstract

Interface for classes that resolve to a value of type T based on a widget's interactive "event", which is defined as a set of WidgetEvents.

Implementers

Constructors

DrivenProperty()

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<WidgetEvent> events) → T
Returns a value of type T that depends on events.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

all<T>(T value) DrivenProperty<T>
Convenience method for creating a DrivenProperty that resolves to a single value for all events.
by<T>(DrivenPropertyResolver<T> callback) DrivenProperty<T>
Convenience method for creating a DrivenProperty from a DrivenPropertyResolver function alone.
evaluate<T>(T value, Set<WidgetEvent> events) → T
Resolves the value for the given set of events if value is a DrivenProperty, otherwise returns the value itself.