ListSizeValidator constructor

const ListSizeValidator(
  1. String name, {
  2. required int min,
  3. int? max,
})

name is traversed using JsonMap.read to find the base list

min is the inclusive minimum number of elements in the list.

max is the inclusive maximum number of elements in the list. If this is null, then there will be no maximum bound.

Implementation

const ListSizeValidator(
  this.name, {
  required this.min,
  this.max,
});