mapErr<W extends Object> method
Implementation
@override
@pragma("vm:prefer-inline")
Err<S, W> mapErr<W extends Object>(W Function(F error) fn) {
final newError = fn(err);
return Err(newError);
}
@override
@pragma("vm:prefer-inline")
Err<S, W> mapErr<W extends Object>(W Function(F error) fn) {
final newError = fn(err);
return Err(newError);
}