Validation<S, M> class
sealed
- Implementers
Constructors
-
Validation({M? key, ValidationOutcome onSuccess, ValidationOutcome onFailure, required Validator<
S> validator, required M message}) -
constfactory
-
Validation.queue(List<
Validation< list, {M? key, ValidationOutcome onSuccess, ValidationOutcome onFailure})S, M> > -
constfactory
-
constfactory
- Validation.valid({M? key})
-
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → M?
-
final
- onFailure → ValidationOutcome
-
final
- onSuccess → ValidationOutcome
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
S state, List< ValidationState> stateHistory) → ValidationResult<M>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited