KeyHelper class abstract

Abstract class for window-specific key mappings.

Given that there might be multiple window toolkit implementations (GLFW, GTK, QT, etc), this creates a common interface for each of the different toolkits.

This class is deprecated and will be removed. Platform specific key event data will no longer be available. See KeyEvent for what is available.

  • @Deprecated('No longer supported. ' 'This feature was deprecated after v3.18.0-2.0.pre.')


KeyHelper(String toolkit)
Create a KeyHelper implementation depending on the given toolkit.


debugToolkit String
Returns the name for the toolkit.
no setter
hashCode int
The hash code for this object.
no setterinherited
platformPlane int
The platform plane mask value of this platform.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited


getModifierSide(ModifierKey key) KeyboardSide
Returns a KeyboardSide enum value that describes which side or sides of the given keyboard modifier key were pressed at the time of this event.
isModifierPressed(ModifierKey key, int modifiers, {KeyboardSide side = KeyboardSide.any, required int keyCode, required bool isDown}) bool
Returns true if the given ModifierKey was pressed at the time of this event.
logicalKey(int keyCode) LogicalKeyboardKey?
The logical key from the specific key code mapping.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
numpadKey(int keyCode) LogicalKeyboardKey?
The numpad key from the specific key code mapping.
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.