Returns a new Result, mapping any Ok value using the given transformation.
@override @pragma("vm:prefer-inline") Ok<W, F> map<W>(W Function(S ok) fn) { final newOk = fn(ok); return Ok<W, F>(newOk); }