FutureOnErrorExtension<T> extension

on

Methods

logError({AsyncExtensionErrorLogger? errorLogger, bool logError = true}) Future<T>

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

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>

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

Returns this Future value or onErrorValue if it throws an error.