CancelTokenSource class
The writable side of a CancelToken. Keep it private to the caller that owns the operation; hand only the token to callees.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- token → CancelToken
-
The token to pass down to cancellable work.
final
Methods
-
cancel(
[Object? reason]) → void -
Cancels token. Idempotent; the first
reasonwins. -
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