isMetaPressed property

  1. @Deprecated('Use HardwareKeyboard.instance.isMetaPressed instead. ' 'This feature was deprecated after v3.18.0-2.0.pre.')
bool isMetaPressed

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

This method is deprecated and will be removed. Use HardwareKeyboard.isMetaPressed instead.

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

Implementation

@Deprecated(
  'Use HardwareKeyboard.instance.isMetaPressed instead. '
  'This feature was deprecated after v3.18.0-2.0.pre.',
)
bool get isMetaPressed {
  return isKeyPressed(LogicalKeyboardKey.metaLeft) || isKeyPressed(LogicalKeyboardKey.metaRight);
}