FutureExtensions<T> extension Null safety

Convenience methods on futures.

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

on

Methods

ignore() → void
Completely ignores this future and its result. [...]
@Since("2.15")
onError<E extends Object>(FutureOr<T> handleError(E error, StackTrace stackTrace), {bool test(E error)?}) Future<T>
Handles errors on this future. [...]