FutureOnErrorExtension<T> extension
- on
-
- Future<
T>
- Future<
Methods
-
logError(
{AsyncExtensionErrorLogger? errorLogger, bool logError = true}) → Future< T> -
Logs a Future error using
errorLogger
or defaultAsyncExtensionErrorLogger if parameterlogError
istrue
. -
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.