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