KeyPressListener class

A class that listens for key presses from stdin and emits the key presses to the stream.

Constructors

KeyPressListener({required Logger logger})
A class that listens for key presses from stdin and emits the key presses to the stream.

Properties

hashCode int
The hash code for this object.
no setterinherited
logger → Logger
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

listenToKeystrokes({required Event onExit, required Event onRebuild, required Event onEscape}) Stream<void>?
listens to keystrokes
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