setBit method
Returns a new ByteConverter with the bit at index set to 1.
Index 0 is the least significant bit.
Implementation
ByteConverter setBit(int index) {
if (index < 0 || index >= 64) {
throw RangeError.range(index, 0, 63, 'index');
}
final newBits = _converter.bits | (1 << index);
return ByteConverter.withBits(newBits);
}