flatMap<W extends Object> method

  1. @override
Result<W, F> flatMap<W extends Object>(
  1. Result<W, F> fn(
    1. S success
    )
)
override

Returns a new Result, mapping any Success value using the given transformation and unwrapping the produced Result.

Implementation

@override
Result<W, F> flatMap<W extends Object>(Result<W, F> Function(S success) fn) {
  return fn(_success);
}