ByteList.withConstraint constructor

ByteList.withConstraint(
  1. Iterable<int> data, {
  2. required int constraintLength,
})

It creates a ByteList and checks wheter the data's length is equal with the specified constraint (min and max length equal).

Implementation

ByteList.withConstraint(Iterable<int> data, {required int constraintLength})
    : _u8l = _constructList(data, constraintLength, constraintLength);