FutureOnErrorExtension<T> extension

on

Methods

logError({AsyncExtensionErrorLogger? errorLogger, bool logError = true}) Future<T>
Logs a Future error using errorLogger or defaultAsyncExtensionErrorLogger if parameter logError is true.
onErrorReturn(T onErrorValue, {FutureOr<void> onError(Object e, StackTrace s)?, AsyncExtensionErrorLogger? errorLogger, bool logError = true}) Future<T>
Returns this Future value or onErrorValue if it throws an error.