RawKeyEventData class

Base class for platform-specific key event data.

This base class exists to have a common type to use for each of the target platform's key event data structures.

See also:

Implementers
Annotations
  • @immutable

Constructors

RawKeyEventData()
Abstract const constructor. [...]
const

Properties

isAltPressed bool
Returns true if a ALT modifier key was pressed at the time of this event, regardless of which side of the keyboard it is on. [...]
read-only
isControlPressed bool
Returns true if a CTRL modifier key was pressed at the time of this event, regardless of which side of the keyboard it is on. [...]
read-only
isMetaPressed bool
Returns true if a META modifier key was pressed at the time of this event, regardless of which side of the keyboard it is on. [...]
read-only
isShiftPressed bool
Returns true if a SHIFT modifier key was pressed at the time of this event, regardless of which side of the keyboard it is on. [...]
read-only
keyLabel String
Returns the Unicode string representing the label on this key. [...]
read-only
logicalKey LogicalKeyboardKey
Returns an object representing the logical key that was pressed. [...]
read-only
modifiersPressed Map<ModifierKey, KeyboardSide>
Returns a map of modifier keys that were pressed at the time of this event, and the keyboard side or sides that the key was on.
read-only
physicalKey PhysicalKeyboardKey
Returns an object representing the physical location of this key on a QWERTY keyboard. [...]
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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, { KeyboardSide side: KeyboardSide.any }) bool
Returns true if the given ModifierKey was pressed at the time of this event. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited