CancelToken class final
A request to stop a download or an install, checked between steps.
Constructors
- CancelToken()
- A token that has not been cancelled yet.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCancelled → bool
-
Whether cancel was called.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancel(
) → void - Asks the work to stop.
-
check(
) → void - Throws CancelledException if cancelled.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onCancel(
void listener()) → void Function() -
Calls
listenerwhen cancelled (at once if already). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited