bool hasFlag(SemanticsFlags flag)

Whether flags contains the given flag.

Source

bool hasFlag(SemanticsFlags flag) => (flags & flag.index) != 0;