ensure method
Turns a success that fails check into a failure of
otherwise(success).
Implementation
Task<S, F> ensure({
required bool Function(S ok) check,
required F Function(S ok) otherwise,
}) => Task._(_task.ensure(check: check, otherwise: otherwise));