toggle method

void toggle(
  1. int channel
)

channel - an integer from 0 to 31.

Toggle membership of layer.

Implementation

void toggle(int channel) => mask ^= 1 << channel | 0;