一次异步宿主方法调用的生命周期上下文。
cancelled completes when the owning runtime is stopped, disposed, or rebuilt. Method implementations that own cancellable work should stop it promptly, then call throwIfCancelled before returning a value.
Properties
- cancellationReason → Object?
-
The runtime lifecycle error that caused cancellation, when available.
no setter
-
cancelled
→ Future<
void> -
Completes when this invocation no longer belongs to a live runtime.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCancelled → bool
-
Whether the owning runtime has cancelled this invocation.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
throwIfCancelled(
) → void - Throws cancellationReason if this invocation has been cancelled.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited