convertBoth<S2, F2> method
Converts both the success and failure types of the result.
Implementation
Res<S2, F2> convertBoth<S2, F2>({
required S2 Function(S ok) onOk,
required F2 Function(F err) onErr,
}) => Res._(_result.convertBoth(onSuccess: onOk, onFailure: onErr));