mapErr<W extends Object> method
Implementation
FutureResult<S, W> mapErr<W extends Object>(
FutureOr<W> Function(F error) fn) {
return mapOrElse(
(error) async {
return Err(await fn(error));
},
Ok.new,
);
}