WidgetStateProperty<States> class

A state property that extends the StateProperty interface to pass a BuildContext in the resolver in order to support Flutter widgets.

Constructors

WidgetStateProperty(StateProperty<States, Widget?> _resolve(BuildContext context))

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(BuildContext context, Set<States> states) Widget?
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

all<States>(StatelessWidgetResolver builder) WidgetStateProperty<States>
Resolves the given builder in all cases regardless of the state of the scroll view.
never<States>() WidgetStateProperty<States>
Resolves null as the value regardless of the state of the scroll view.
resolveState<States>(StatelessWidgetResolver builder, States state) WidgetStateProperty<States>
resolveWith<States>(StatefulWidgetResolver<States> builder) WidgetStateProperty<States>
The most flexible WidgetStateProperty that allows for dynamically resolving behavior based on the provided set of states.