CancellationToken class

Constructors

CancellationToken()

Properties

cancelError OperationCanceledError?
if request have been canceled, save the cancel Error.
no setter
hashCode int
The hash code for this object.
no setterinherited
isCanceled bool
whether has canceled
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel([String? msg]) → void
cancel operation
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
throwIfCancellationRequested() → void
toString() String
A string representation of this object.
inherited

Operators

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