CancelToken class
Token used to cancel an in-flight ApiStudioClient request.
Create one token per request and pass it via the cancelToken parameter.
Call cancel to abort the request.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCancelled → bool
-
Whether this token has been cancelled.
no setter
- reason → String?
-
Cancellation reason, if any.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
whenCancel
→ Future<
String> -
Internal future resolved when cancel is called.
no setter
Methods
-
cancel(
[String reason = 'Request cancelled']) → void - Cancels the associated request.
-
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