map<R> method

Result<R> map<R>(
  1. R func(
    1. T value
    )
)

map result

Implementation

Result<R> map<R>(R Function(T value) func) {
  return fold(Result.error, (value) => successResult(func(value)));
}