flatMap<U> method

Result<U> flatMap<U>(
  1. Result<U> transform(
    1. V
    )
)

Implementation

$async.Result<U> flatMap<U>($async.Result<U> Function(V) transform) {
  if (isValue) {
    return transform(asValue!.value);
  } else {
    return $async.Result.error(asError!.error);
  }
}