Char class Input

Represents a single character input event, including the character symbol and the physical key code that produced it.

Constructors

Char(String symbol, KeyCodes physicalKey)
Creates a new Char instance.

Properties

hashCode → int
The hash code for this object.
no setterinherited
physicalKey → KeyCodes
The KeyCodes enum value representing the physical key pressed to generate this character.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
symbol → String
The string representation of the character (e.g., "a", "!", "?").
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

Operators

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

Static Properties

empty → Char
A pre-defined empty Char instance, representing no character input. Useful for returning from methods like Keyboard.getChar when the character queue is empty.
final