bitToggle method

void bitToggle(
  1. int bit
)

Toggles a bit.

Implementation

void bitToggle(int bit) => sum ^= bit;