onSuccess<R> abstract method

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

Execute whenSuccess if the Result is a success.

Implementation

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