Validation<S, M> class sealed

Implementers

Constructors

Validation({M? key, ValidationOutcome onSuccess, ValidationOutcome onFailure, required Validator<S> validator, required M message})
const
factory
Validation.queue(List<Validation<S, M>> list, {M? key, ValidationOutcome onSuccess, ValidationOutcome onFailure})
const
factory
Validation.relatedTo(M key, {ValidationOutcome onSuccess, ValidationOutcome onFailure, required DependantValidator<S, ValidatorTarget> validatorBuilder(ValidatorTarget target), required M message})
const
factory
Validation.valid({M? key})
const
factory

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