FutureOnErrorExtension<T> extension
- on
-
- Future<
T>
- Future<
Methods
-
logError(
{AsyncExtensionErrorLogger? errorLogger, bool logError = true}) → Future< T> -
Available on Future<
Logs a Future error usingT> , provided by the FutureOnErrorExtension extensionerrorLogger
or defaultAsyncExtensionErrorLogger if parameterlogError
istrue
. -
onErrorReturn(
T onErrorValue, {FutureOr< void> onError(Object e, StackTrace s)?, AsyncExtensionErrorLogger? errorLogger, bool logError = true}) → Future<T> -
Available on Future<
Returns this Future value orT> , provided by the FutureOnErrorExtension extensiononErrorValue
if it throws an error.