map<R> method

Future<Validation<R>> map<R>(
  1. R f(
    1. T t
    )
)

Implementation

Future<Validation<R>> map<R>(R Function(T t) f) =>
    fold((err) => Invalid<R>(err), (v) => Valid(f(v!)));