validate method

FutureOr<List<ValidationError>> validate(
  1. String propertyName,
  2. dynamic propertyValue
)

Validates a request parameter or the entiry body of a request. Returns validation errors when the property is not valid according to this validator. entity is the enclosing object being validated.

Implementation

FutureOr<List<ValidationError>> validate(String propertyName,
    dynamic propertyValue) =>
    validateProperty(null, propertyName, propertyValue);