FutureExtensions<T> extension

Convenience methods on futures.

Adds functionality to futures which makes it easier to write well-typed asynchronous code.

on

Methods

ignore() → void

Available on Future<T>, provided by the FutureExtensions extension

Completely ignores this future and its result.
onError<E extends Object>(FutureOr<T> Function(E error, StackTrace stackTrace) handleError, {bool Function(E error)? test}) → Future<T>

Available on Future<T>, provided by the FutureExtensions extension

Handles errors on this future.