map<W> method

  1. @override
Err<W, F> map<W>(
  1. W fn(
    1. S ok
    )
)
override

Returns a new Result, mapping any Ok value using the given transformation.

Implementation

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