isMetaPressed property

bool isMetaPressed

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

Use isLogicalKeyPressed if you need to know which meta key was pressed.

Implementation

bool get isMetaPressed {
  return isLogicalKeyPressed(LogicalKeyboardKey.metaLeft) || isLogicalKeyPressed(LogicalKeyboardKey.metaRight);
}