CancellationTokenSource class

A cancellation source creates and controls a {@link CancellationTokencancellation token}.

Available extensions
Annotations
  • @JS()
  • @staticInterop

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 CancellationToken

Available on CancellationTokenSource, provided by the CancellationTokenSource$Typings extension

The cancellation token of this source.
getter/setter pair

Methods

cancel() → void

Available on CancellationTokenSource, provided by the CancellationTokenSource$Typings extension

Signal cancellation on the token.
dispose() → void

Available on CancellationTokenSource, provided by the CancellationTokenSource$Typings extension

Dispose object and free resources.
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