DelegatingFuture<T> class

A wrapper that forwards calls to a Future.

Implemented types
Implementers

Constructors

DelegatingFuture(Future<T> _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

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
then<S>(FutureOr<S> onValue(T value), { Function onError }) Future<S>
Register callbacks to be called when this future completes. [...]
override
timeout(Duration timeLimit, { dynamic onTimeout() }) Future<T>
Time-out the future computation after timeLimit has passed. [...]
override
whenComplete(dynamic action()) Future<T>
Registers a function to be called when this future completes. [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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

Static Methods

typed<T>(Future future) Future<T>
Creates a wrapper which throws if future's value isn't an instance of T. [...]
@Deprecated('Use future.then((v) => v as T) instead.')