isPressed method

bool isPressed(
  1. GKey key
)

Returns whether the given key is currently pressed.

Implementation

bool isPressed(GKey key) {
  return _lastEvent?.rawEvent.isKeyPressed(key) ?? false;
}