validate method
Validates instance
against this validator, where instance
is not
the field value but the whole class instance.
Implementation
@override
bool validate(MustMatchCacheEntry cached, instance, DogEngine engine) {
final selfValue = cached.proxy.getField(instance, cached.selfIndex);
final otherValue = cached.proxy.getField(instance, cached.otherIndex);
return deepEquality.equals(selfValue, otherValue);
}