FutureOrFuture<T> extension

on

Methods

asStream() Stream<T>
catchError(Function onError, {bool test(Object error)?}) FutureOr<T>
then<R>(FutureOr<R> onValue(T value), {Function? onError}) FutureOr<R>
timeout(Duration timeLimit, {FutureOr<T> onTimeout()?}) FutureOr<T>
whenComplete(FutureOr<void> action()) FutureOr<T>