mapFuture<R> method
Implementation
Future<Validation<R>> mapFuture<R>(Future<R> Function(T t) f) =>
foldFuture((err) => Invalid<R>(err).toFuture(),
(v) => f(v!).then((value) => Valid(value)));
Future<Validation<R>> mapFuture<R>(Future<R> Function(T t) f) =>
foldFuture((err) => Invalid<R>(err).toFuture(),
(v) => f(v!).then((value) => Valid(value)));