isKeyPressed method Null safety

bool isKeyPressed(
  1. LogicalKeyboardKey key
)

Returns true if the given KeyboardKey is pressed.

Implementation

bool isKeyPressed(LogicalKeyboardKey key) => RawKeyboard.instance.keysPressed.contains(key);