validate method
Implementation
@override
bool validate(cached, value, DogEngine engine) {
if (value == null) return true;
var it = value as Iterable;
if (min != null) {
if (it.length < min!) return false;
}
if (max != null) {
if (it.length > max!) return false;
}
return true;
}