has method

bool has(
  1. FieldAttributes other
)

Whether this instance has all the bit fields specified in other.

Implementation

bool has(FieldAttributes other) => this & other == other;