KeyboardEventListener class

Constructors

KeyboardEventListener(String event, List<int> keyCodes, dynamic callback(KeyboardEvent), {bool where(Event)})

Properties

callback → dynamic Function(KeyboardEvent)
the callback that gets triggered when any of the keyCodes is hit.
final
event String
the keyboard event e.g keydown, keyup, etc.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
keyCodes List<int>
e.g. KeyCode.ESC, etc.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
where bool Function(Event)
final

Methods

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

Operators

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