KeyHelper class Null safety

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.

Implementers

Constructors

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

Properties

debugToolkit String
Returns the name for the toolkit.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
platformPlane int
The platform plane mask value of this platform.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

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 non-existent method or property is accessed.
inherited
numpadKey(int keyCode) LogicalKeyboardKey?
The numpad key from the specific key code mapping.
toString() String
A string representation of this object.
inherited

Operators

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