OperationCanceledException class

The exception that is thrown in a thread upon cancellation of an operation that the thread was executing.

Inheritance
Implemented types

Constructors

OperationCanceledException({String? message = 'The operation was canceled.', Exception? innerException, StackTrace? stackTrace, CancellationToken? cancellationToken})

Properties

cancellationToken CancellationToken?
Gets a token associated with the operation that was canceled.
final
hashCode int
The hash code for this object.
no setterinherited
innerException Exception?
The Exception instance that caused the current exception.
no setterinherited
message String?
The message that describes the current exception.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
The string representation of the immediate frames on the call stack.
no setterinherited

Methods

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