configureRecovery method
void
configureRecovery({
- ErrorRecoveryStrategy? strategy,
- T? fallbackValue,
- Future<
T> recoveryFunction()?,
Configure error recovery
Implementation
void configureRecovery({
ErrorRecoveryStrategy? strategy,
T? fallbackValue,
Future<T> Function()? recoveryFunction,
}) {
if (strategy != null) _recoveryStrategy = strategy;
if (fallbackValue != null) _fallbackValue = fallbackValue;
if (recoveryFunction != null) _recoveryFunction = recoveryFunction;
}