mapError<E2> abstract method
Maps the error(s) if invalid, returns same valid result otherwise. Maps the error(s) if invalid, returns same valid result otherwise.
Implementation
ValidationResult<T, E2> mapError<E2>(E2 Function(E error) transform);