validate method

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

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);
  }
}