validate method

bool validate(
  1. int length
)

Returns true if the number of expanded items is within the allowed range.

Implementation

bool validate(int length) => _min <= length && (_max == null || length <= _max);