map<R> method

  1. @override
ValidationResult<R, E> map<R>(
  1. R transform(
    1. T value
    )
)
override

Maps the value if valid, returns same invalid result otherwise.

Implementation

@override
ValidationResult<R, E> map<R>(R Function(T value) transform) =>
    InvalidAll(errors);