AssetCancel class final
A read called off: the signal a reader keeps and a source watches.
The engine's own, since Dart has no standard cancellation token: one cancel by whoever started the read (a widget gone, a level left), seen by every source and loader it was handed to. Canceling twice is canceling once.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCanceled → bool
-
Whether cancel has been called.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
whenCanceled
→ Future<
void> -
Completes when cancel is called: what a source with a request in
flight listens to, to abort it.
no setter
Methods
-
cancel(
) → void - Calls the read off. Every read handed this signal stops at its next check, and the load it belongs to fails with ResourceLoadCanceledException.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
throwIfCanceled(
Object? key) → void -
Throws ResourceLoadCanceledException naming
keyonce cancel has been called. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited