convertBoth<S2, F2> method

ResStream<S2, F2> convertBoth<S2, F2>({
  1. required S2 onOk(
    1. S ok
    ),
  2. required F2 onErr(
    1. F err
    ),
})

Maps the success value and the failure value.

Implementation

ResStream<S2, F2> convertBoth<S2, F2>({
  required S2 Function(S ok) onOk,
  required F2 Function(F err) onErr,
}) => ResStream._(_stream.convertBoth(onSuccess: onOk, onFailure: onErr));