isPhysicalKeyPressed method

bool isPhysicalKeyPressed(
  1. PhysicalKeyboardKey key
)

Returns true if the given PhysicalKeyboardKey is pressed, according to the HardwareKeyboard.

Implementation

bool isPhysicalKeyPressed(PhysicalKeyboardKey key) => _pressedKeys.containsKey(key);