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