flatMap<R> method

Result<R> flatMap<R>(
  1. Result<R> f(
    1. T
    )
)

Implementation

Result<R> flatMap<R>(Result<R> Function(T) f) {
  if (isSuccess) {
    return f(value!);
  } else {
    return Result.failure(errorKey!, errorMessage!);
  }
}