clearBit method

BigByteConverter clearBit(
  1. int index
)

Returns a new BigByteConverter with the bit at index cleared to 0.

Implementation

BigByteConverter clearBit(int index) {
  if (index < 0) {
    throw RangeError.value(index, 'index', 'Must be non-negative');
  }
  final newBits = _converter.bits & ~(BigInt.one << index);
  return BigByteConverter.withBits(newBits);
}