PostFramePredicates class

Common predicates for conditional PostFrame execution.

Constructors

PostFramePredicates()

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
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

all(List<PostFramePredicate> predicates) PostFramePredicate
Returns a predicate that combines multiple predicates with AND logic.
any(List<PostFramePredicate> predicates) PostFramePredicate
Returns a predicate that combines multiple predicates with OR logic.
mounted(BuildContext context) PostFramePredicate
Returns a predicate that checks if a BuildContext is still mounted.
not(PostFramePredicate predicate) PostFramePredicate
Returns a predicate that negates another predicate.
routeActive(BuildContext context) PostFramePredicate
Returns a predicate that checks if the current route is still active.
scrollControllerHasClients(ScrollController controller) PostFramePredicate
Returns a predicate that checks if a ScrollController has clients.
scrollExtentAtLeast(ScrollController controller, double minExtent) PostFramePredicate
Returns a predicate that checks if a ScrollController's position has a certain minimum scroll extent.
stateMounted(State<StatefulWidget> state) PostFramePredicate
Returns a predicate that checks if a State is still mounted.