WrappedFuture<T> class

A future that simply wraps another Future.

This Future provides no additional functionality to the passed in Future by default. This is meant as a base implementation that allows you to extend Futures you can't directly create.

For example, the AsObservableFuture adds one method to the Futures returned by some Stream methods.



WrappedFuture(Future<T> wrapped)


wrapped → Future<T>
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited


asStream() → Stream<T>
Creates a Stream containing the result of this future. [...]
catchError(Function onError, { bool test(Object error) }) → Future<T>
Handles errors emitted by this Future. [...]
then<S>(FutureOr<S> onValue(T value), { Function onError }) → Future<S>
Register callbacks to be called when this future completes. [...]
timeout(Duration timeLimit, { FutureOr<T> onTimeout() }) → Future<T>
Time-out the future computation after timeLimit has passed. [...]
whenComplete(void action()) → Future<T>
Registers a function to be called when this future completes. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toString() → String
Returns a string representation of this object.


operator ==(dynamic other) → bool
The equality operator.