KeyboardEventData class

A class representing keyboard event data.

Available Extensions

Constructors

KeyboardEventData({required KeyEventType type, required RawKeyEvent rawEvent})
Creates a new instance of KeyboardEventData with the specified type and rawEvent.

Properties

hashCode int
The hash code for this object.
no setterinherited
rawEvent RawKeyEvent
The raw key event.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type KeyEventType
The type of the key event.
final

Methods

any(Iterable<GKey> list) bool
Returns true if any GKey in the list matches the last keyboard event.
isKey(GKey key) bool
Returns true if the last keyboard event matches the specified key, false otherwise.
isPressed(GKey key) bool
Returns true if the specified key is currently pressed, false otherwise.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Returns a string representation of the KeyboardEventData.
override

Operators

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