validate method
Validates value
against this validator.
Implementation
@override
bool validate(cached, value, DogEngine engine) {
final entry = cached as _RegexCacheEntry;
if (entry.isIterable) {
if (value == null) return true;
return (value as Iterable)
.every((e) => _validateSingle(entry.matcher, e));
} else {
return _validateSingle(entry.matcher, value);
}
}