convert<S2> method

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

Converts the success type of the result.

Implementation

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