QueryCancellationController class final
Creates and completes a cancellation token for one query fetch.
Constructors
- QueryCancellationController()
- Creates a controller with a fresh token.
Properties
- consumed → bool
-
Whether the query function consumed the token.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- token → QueryCancelToken
-
The token passed to the query function.
final
-
whenCancelled
→ Future<
QueryCancelledException> -
Completes when cancellation is requested.
no setter
Methods
-
cancel(
{bool silent = false, bool revert = true}) → void - Cancels the query with the selected notification behavior.
-
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