CancelToken class
A cooperative cancellation signal for EventBus.request.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCancelled → bool
-
True once cancel was called.
no setter
- reason → Object?
-
The reason passed to cancel, when any.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
whenCancelled
→ Future<
void> -
Completes when cancel is called.
no setter
Methods
-
cancel(
[Object? reason]) → void - Cancels the requests that listen to this token. Repeated calls are safe.
-
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