flip method

void flip(
  1. int index
)

Sets the bit at the specified index to the complement of its current value.

Implementation

void flip(int index) {
  RangeError.checkValidIndex(index, this);
  flipUnchecked(index);
}