isValid method
Implementation
@override
bool isValid(dynamic value) {
if (value is! Iterable) {
return false;
}
if (length != 0 && value.length > length) {
return false;
}
for (final element in value) {
if (!validator.isValid(element)) {
return false;
}
}
return true;
}