KeyEvent class

Normalized key event captured from terminal input.

The representation intentionally stays tiny-just an event type plus an optional char payload for printable or generic control keys. This keeps serialization trivial and ergonomic when piping events between isolates.

Constructors

KeyEvent(KeyEventType type, [String? char])
const

Properties

char → String?
Printable character, or the lowercase letter that was combined with Ctrl for ctrlGeneric events (e.g. ^A → a). Null for keys without a character payload.
final
hashCode → int
The hash code for this object.
no setterinherited
printableText → String?
Printable text represented by this event, or null for a command key. Space and slash retain their public event types for command bindings.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → KeyEventType
Parsed event classification.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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