recoverWhen method
Turns a failure that passes check into a success of then(failure).
Implementation
Task<S, F> recoverWhen({
required bool Function(F err) check,
required S Function(F err) then,
}) => Task._(_task.recoverWhen(check: check, then: then));