FutureX<T> extension

Utility extensions on Future.

on

Methods

catchErrorOnly(void onError(Object? error), {bool test(Object error)?}) Future<T>

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

Handles errors emitted by this Future.
catchTrace(void onError(Object? error, StackTrace trace), {bool test(Object error)?}) Future<T>

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

Handles errors, and provides the stack trace emitted by this Future.