validate method

  1. @override
bool validate(
  1. dynamic cached,
  2. dynamic value,
  3. DogEngine engine
)
override

Validates value against this validator.

Implementation

@override
bool validate(cached, value, DogEngine engine) {
  if (cached as bool) {
    if (value == null) return true;
    return (value as Iterable).every((e) => _validateSingle(e));
  } else {
    return _validateSingle(value);
  }
}