isLogicalKeyPressed method

bool isLogicalKeyPressed(
  1. LogicalKeyboardKey key
)

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

Implementation

bool isLogicalKeyPressed(LogicalKeyboardKey key) => _pressedKeys.values.contains(key);