isEnabled method

bool isEnabled(
  1. int channel
)

channel - an integer from 0 to 31.

Returns true if the given layer is enabled.

Implementation

bool isEnabled(int channel) => (mask & (1 << channel | 0)) != 0;