ActiveKeyBinding class final

A user-visible key binding resolved against the current focus context.

sequences contains only the aliases this binding can actually fire on and owns at its position in the active focus chain. For example, while a text input is focused, a [j, ↓] binding resolves to just ↓; if a deeper binding owns ↓, the shallower binding resolves to just j.

Instances are produced by resolveActiveKeyBindings. The result and its sequences list are immutable so help, hint, and inspection surfaces can safely retain a resolution for the frame in which it was computed.

Properties

binding → KeyBinding
The declarative binding that owns these effective sequences.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sequenceLabel → String
A combined label for all effective aliases, such as ↑↓.
no setter
sequences → List<KeySequence>
The binding aliases that are live and unshadowed in this focus context.
final

Methods

labelWith(KeyboardLayout layout) → String
sequenceLabel with each positional alias resolved against the caps this keyboard actually has.
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