DelegatingFuture<T> class
A wrapper that forwards calls to aFuture.
- Implemented types
- Future<
T>
- Future<
- Implementers
- Available extensions
Constructors
- DelegatingFuture(Future<
T> _future)
Properties
- hashCode→int
- The hash code for this object.no setterinherited
- runtimeType→Type
- A representation of the runtime type of the object.no setterinherited
- toJS→JSPromise<
T> Available onFuture<
AJSPromise that either resolves with the result of the completedFuture or rejects with an object that contains its error.T> , provided by theFutureOfJSAnyToJSPromise extensionno setter- toJS→JSPromise<
JSAny?> Available onFuture<
AJSPromise that either resolves once thisFuture completes or rejectswith an object that contains its error.void> , provided by theFutureOfVoidToJSPromise extensionno setter
Methods
- asStream(
)→Stream< T> - Creates aStream containing the result of this future.override
- catchError(
FunctiononError, {booltest(Objecterror)?})→Future< T> - Handles errors emitted by thisFuture.override
- ignore(
)→ void Available onFuture<
Completely ignores this future and its result.T> , provided by theFutureExtensions extension- noSuchMethod(
Invocationinvocation)→ dynamic - Invoked when a nonexistent method or property is accessed.inherited
- onError<
E extendsObject> (FutureOr< T> handleError(Eerror,StackTracestackTrace), {booltest(Eerror)?})→Future<T> Available onFuture<
Handles errors on this future.T> , provided by theFutureExtensions extension- then<
S> (FutureOr< S> onValue(T), {Function?onError})→Future<S> - Register callbacks to be called when this future completes.override
- timeout(
DurationtimeLimit, {FutureOr< T> onTimeout()?})→Future<T> - Stop waiting for this future after
timeLimithas passed.override - toString(
)→String - A string representation of this object.inherited
- whenComplete(
FutureOraction())→Future< T> - Registers a function to be called when this future completes.override
Operators
- operator ==(
Objectother)→bool - The equality operator.inherited