MustMatch class

Requires a field to match another field.

Inheritance
Implemented types

Constructors

MustMatch.new(String otherFieldName)
Requires a field to match another field.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
otherFieldName String
The name of the other field to match.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

annotate(dynamic cached, dynamic instance, DogEngine engine) AnnotationResult
Annotates instance with this validator returning an AnnotationResult. This mechanic is used to provide more information about the validation error.
override
getCachedValue(DogStructure structure, DogStructureField field) → MustMatchCacheEntry
Returns a cached value for this validator. Will be passed to validate
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validate(MustMatchCacheEntry cached, dynamic instance, DogEngine engine) bool
Validates instance against this validator, where instance is not the field value but the whole class instance.
override
verifyUsage(DogStructure structure, DogStructureField field) → void
Field level validator that has access to the whole class instance.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

messageId → const String
The message id used for the annotation result.