EnabledWhen class final Option values

The Enabled.when variant: enabled while predicate returns true for the query.

Inheritance

Constructors

EnabledWhen(bool predicate(Query<Object?> query))
Enabled while predicate says so; prefer spelling it Enabled.when(…).
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
predicate → bool Function(Query<Object?> query)
Given the query, whether it may fetch on its own right now.
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(Query<Object?> query) → bool
Whether query may fetch on its own right now.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override