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