CancelableCompleter<T> class Null safety

A completer for a CancelableOperation.

Constructors

CancelableCompleter({FutureOr onCancel()?})
Creates a new completer for a CancelableOperation.

Properties

hashCode int
The hash code for this object.
read-onlyinherited
isCanceled bool
Whether the completer was canceled before the result was ready.
read-only
isCompleted bool
Whether the complete or completeError have been called.
read-only
operation CancelableOperation<T>
The operation controlled by this completer.
latefinal
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

complete([FutureOr<T>? value]) → void
Completes operation with value.
completeError(Object error, [StackTrace? stackTrace]) → void
Completes operation with error and stackTrace.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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