Validation<T> class

Constructors

Validation.invalid(Iterable<Fail> failures)
const
Validation.valid(T value)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isValid bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

andThen(void action(T t)) Validation<T>
asIterable() Iterable<T>
bind<R>(Validation<R> f(T val)) Validation<R>
bindFuture<R>(Future<Validation<R>> f(T val)) Future<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>>