ByteList.withConstraintRange constructor

ByteList.withConstraintRange(
  1. Iterable<int> data, {
  2. int min = _minLength,
  3. int max = _maxLength,
})

It creates a ByteList and checks wheter the data's length is equal with the specified constraints (allowed range i.e., min and max length)

e.g. data.length >= min and data.length <= max.

Implementation

ByteList.withConstraintRange(Iterable<int> data,
    {int min = _minLength, int max = _maxLength})
    : _u8l = _constructList(data, min, max);