A wrapper that forwards calls to a Future.

Implements
  • Future<T>
Implemented by

Constructors

DelegatingFuture(Future _future)

Properties

hashCode → int

Get a hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

asStream() → Stream<T>

Creates a Stream containing the result of this future.

catchError(Function onError, {bool test(error)}) → Future

Handles errors emitted by this Future.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
then(dynamic onValue(T value), {Function onError}) → Future

Register callbacks to be called when this future completes.

timeout(Duration timeLimit, {void onTimeout()}) → Future

Time-out the future computation after timeLimit has passed.

toString() → String

Returns a string representation of this object.

inherited
whenComplete(dynamic action()) → Future<T>

Register a function to be called when this future completes.