validateSingle method

bool validateSingle(
  1. dynamic value,
  2. ValidationMode mode,
  3. DogEngine engine
)

Implementation

bool validateSingle(value, ValidationMode mode, DogEngine engine) {
  if (value == null) return true;
  return mode.validate(value, engine);
}