has method

bool has(
  1. KeyModifiers modifier
)

Checks if the specified modifier is present.

Implementation

bool has(KeyModifiers modifier) => (value & modifier.value) == modifier.value;