isAltPressed top-level property

bool get isAltPressed

Implementation

bool get isAltPressed {
  return HardwareKeyboard.instance.logicalKeysPressed
          .contains(LogicalKeyboardKey.altLeft) ||
      HardwareKeyboard.instance.logicalKeysPressed
          .contains(LogicalKeyboardKey.altRight);
}