ValidateArray<T> extension

Validates a list against the constraints a schema declares for it.

See ValidateNumber — validate is sugar over the single-rule methods.

on

Methods

validate({int? minItems, int? maxItems, bool unique = false}) → void

Available on List<T>, provided by the ValidateArray extension

validateMaximumItems(int maximum) → void

Available on List<T>, provided by the ValidateArray extension

validateMinimumItems(int minimum) → void

Available on List<T>, provided by the ValidateArray extension

validateUniqueItems() → void

Available on List<T>, provided by the ValidateArray extension