has method

bool has(
  1. Flag<T> flag
)

Returns true if this Flags has the flag enabled, false otherwise.

Implementation

bool has(Flag<T> flag) => value & flag.value != 0;