validate method

  1. @override
SchemaValidationError? validate(
  1. List<T> value
)
override

Implementation

@override
SchemaValidationError? validate(List<T> value) {
  return value.length <= max
      ? null
      : SchemaValidationError.constraints(
          'List length is greater than the maximum required length: $max',
        );
}