getValidator method

PropertyValidator? getValidator(
  1. PropertyDescriptor property,
  2. ValidationContext context
)

Implementation

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