KeyData class

Information about a key event.

Constructors

KeyData({required Duration timeStamp, required KeyEventType type, required int physical, required int logical, required String? character, required bool synthesized, KeyEventDeviceType deviceType = KeyEventDeviceType.keyboard})
Creates an object that represents a key event.
const

Properties

character String?
Character input from the event.
final
deviceType KeyEventDeviceType
Describes what type of device (keyboard, directional pad, etc.) this event originated from.
final
hashCode int
The hash code for this object.
no setterinherited
logical int
The key code for the logical key that has changed.
final
physical int
The key code for the physical key that has changed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
synthesized bool
If synthesized is true, this event does not correspond to a native event.
final
timeStamp Duration
Time of event dispatch, relative to an arbitrary timeline.
final
type KeyEventType
The type of the event.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
toStringFull() String
Returns a complete textual description of the information in this object.

Operators

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