getValidator method
Implementation
PropertyValidator? getValidator(PropertyDescriptor property, ValidationContext context) {
if (property.validator != null)
return context.get<PropertyValidator>(property.validator!);
else
return propertyValidators[property.type];
}