whenSuccess<R> abstract method

R? whenSuccess<R>(
  1. R whenSuccess(
    1. S success
    )
)

Execute whenSuccess if the Result is a success.

Implementation

R? whenSuccess<R>(
  R Function(S success) whenSuccess,
);