flatMapError<W extends Object> method
Returns a new Result
, mapping any Error
value
using the given transformation and unwrapping the produced Result
.
Implementation
@override
Result<S, W> flatMapError<W extends Object>(
Result<S, W> Function(F failure) fn,
) {
return Success<S, W>(_success);
}