isLeftPressed method

bool isLeftPressed(
  1. LogicalKeyboardKey key
)

Implementation

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