isShiftPressed property

bool isShiftPressed

Returns true if a SHIFT modifier key is pressed, regardless of which side of the keyboard it is on.

Use isKeyPressed if you need to know which shift key was pressed.

Implementation

bool get isShiftPressed {
  return isKeyPressed(LogicalKeyboardKey.shiftLeft) || isKeyPressed(LogicalKeyboardKey.shiftRight);
}