FieldValidator<T> class
abstract
Property level validator for annotations of DogStructureFields.
- Implementers
Constructors
- FieldValidator()
-
Property level validator for annotations of DogStructureFields.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
annotate(
T cached, dynamic value, DogEngine engine) → AnnotationResult -
Annotates
valuewith this validator returning an AnnotationResult. This mechanic is used to provide more information about the validation error. -
getCachedValue(
DogStructureField field) → T - Returns a cached value for this validator. Will be passed to validate on every validation.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
T cached, dynamic value, DogEngine engine) → bool -
Validates
valueagainst this validator. -
verifyUsage(
DogStructureField field) → void -
Verifies the usage of this validator in
field.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited