Keybinder class

A utility class used to bind callbacks to a combination of one or more physical keys on a keyboard; utilizing the global HardwareKeyboard instance.

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

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

Static Methods

bind(Keybinding keybinding, Function callback) → void
Binds the callback to keybinding in the Keybinder.
dispose() → void
Removes all registered callbacks from Keybinder and removes Keybinder's listener from the HardwareKeyboard instance.
isActive(Keybinding keybinding) bool
Returns true if the keybinding is bound to any callbacks.
remove(Keybinding keybinding, [Function? callback]) bool
Removes the callback(s) associated with keybinding from Keybinder.