recoverWhen method
Recovers from a failure when a specified condition is met.
Implementation
Res<S, F> recoverWhen({
required bool Function(F err) check,
required S Function(F err) then,
}) => Res._(_result.recoverWhen(check: check, then: then));