invertBit method

void invertBit(
  1. int index
)

Inverts the bit specified by the index.

Implementation

void invertBit(int index) {
  this[index] = !this[index];
}