InputManager class
Input manager for handling terminal input events.
Widgets and applications use this facade to register key, mouse, and paste listeners, or to inject events in tests. Events are dispatched in priority order and stop when a listener consumes them.
Constructors
- InputManager()
- Initializes a facade backed by one priority-aware input dispatcher.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispatchKey(
KeyEvent event) → void - Dispatch a key event to all subscribers in priority order.
-
dispatchMouse(
MouseEvent event) → void - Dispatch a mouse event to all subscribers in priority order.
-
dispatchPaste(
PasteEvent event) → void - Dispatch a paste event to all subscribers in priority order.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onKey(
KeyEventHandler handler, {int priority = InputPriority.widget}) → InputSubscription -
Subscribe to key events at the given
priority. -
onMouse(
MouseEventHandler handler, {int priority = InputPriority.widget}) → InputSubscription -
Subscribe to mouse events at the given
priority. -
onPaste(
PasteEventHandler handler, {int priority = InputPriority.widget}) → InputSubscription -
Subscribe to paste events at the given
priority. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited