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.

Implemented types
Implementers

Constructors

WrappedFuture(Future<T> wrapped)
Constructs a Future which wraps another Future.

Properties

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
wrapped Future<T>
A reference to the wrapped Future.
final

Methods

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

Operators

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