FutureExtensions extension - dart:async library (original) (raw)
Convenience methods on futures.
Adds functionality to futures which makes it easier to write well-typed asynchronous code.
on
- Future<T>
Annotations
- @Since("2.12")
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> handleError(E error, StackTrace stackTrace), {bool test(E error)?})→ Future<T>
Available on Future<T>, provided by the FutureExtensions extension
Handles errors on this future.