QueryCancelToken class final

A transport-neutral cancellation signal supplied to query functions.

Properties

hashCode → int
The hash code for this object.
no setterinherited
isCancelled → bool
Whether cancellation has been requested.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
whenCancelled → Future<QueryCancelledException>
Completes with the cancellation reason.
no setter

Methods

markConsumed() → void
Records that the query function connected this token to its transport.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
throwIfCancelled() → void
Throws immediately when cancellation has already been requested.
toString() → String
A string representation of this object.
inherited

Operators

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