Returns true if flags (an int) has any of the given mask bits set.
flags
mask
bool hasAnyFlag(int flags, int mask) => (flags & mask) != 0;