andThen<W> method

  1. @override
Result<W, F> andThen<W>(
  1. Result<W, F> fn(
    1. S ok
    )
)
override

If Ok, Returns a new Result by passing the Ok value to the provided function.

Implementation

@override
@pragma("vm:prefer-inline")
Result<W, F> andThen<W>(Result<W, F> Function(S ok) fn) {
  return fn(ok);
}