Validation<T> class
Constructors
-
Validation.invalid(Iterable<
Fail> failures) -
const
- Validation.valid(T value)
-
const
Properties
Methods
-
andThen(
void action(T t)) → Validation< T> -
asIterable(
) → Iterable< T> -
bind<
R> (Validation< R> f(T val)) → Validation<R> -
bindFuture<
R> (Future< Validation< f(T val)) → Future<R> >Validation< R> > -
fold<
TR> (TR invalid(Iterable< Fail> failures), TR valid(T val)) → TR -
forEach(
void action(T val)) → Validation< void> -
map<
R> (R f(T val)) → Validation< R> -
mapFuture<
R> (Future< R> f(T val)) → Future<Validation< R> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toFuture(
) → Future< Validation< T> > -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
Try<
T> (T f(), {String failMessage = ''}) → Validation< T> -
tryFuture<
T> (Future< T> f()) → Future<Validation< T> >