isUpPressed method

bool isUpPressed(
  1. LogicalKeyboardKey key
)

Implementation

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