convert<S2> method

ResStream<S2, F> convert<S2>(
  1. S2 onOk(
    1. S ok
    )
)

Maps the success value. A failure passes through.

Implementation

ResStream<S2, F> convert<S2>(S2 Function(S ok) onOk) =>
    ResStream._(_stream.convert(onOk));