ByteList.withConstraint constructor
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);