set method

void set(
  1. int channel
)

channel - an integer from 0 to 31.

Set membership to layer, and remove membership all other layers.

Implementation

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