isDownPressed method

bool isDownPressed(
  1. LogicalKeyboardKey key
)

Implementation

bool isDownPressed(LogicalKeyboardKey key) {
  return keyboardConfig.directionalKeys.any((element) => element.down == key);
}