isValid method

  1. @override
bool isValid(
  1. dynamic value
)
override

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