mapError<E2> method

  1. @override
ValidationResult<T, E2> mapError<E2>(
  1. E2 transform(
    1. E error
    )
)
override

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);