mapError<W extends Object> abstract method

Result<S, W> mapError<W extends Object>(
  1. W fn(
    1. F error
    )
)

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

Implementation

Result<S, W> mapError<W extends Object>(W Function(F error) fn);