DiagramKeyBinding class final
One exact key chord that performs a verb, optionally restricted to a shape, text type, or slot. Command means Meta on macOS and Control elsewhere. Repeats are ignored.
The verb targets the selected element, or the diagram in canvas scope, with the arguments args computes; a setter bound to a key passes the value it sets, such as the next count.
Constructors
-
DiagramKeyBinding({required String verb, required LogicalKeyboardKey key, required DiagramKeyScope scope, DiagramKeyArguments? args, String? shapeType, String? textType, String? slotId, Set<
DiagramKeyModifier> modifiers = const {}}) -
const
Properties
- args → DiagramKeyArguments?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- identity → Object
-
no setter
- key → LogicalKeyboardKey
-
final
-
modifiers
→ Set<
DiagramKeyModifier> -
Modifiers held with key; the chord matches only these exactly.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scope → DiagramKeyScope
-
final
- shapeType → String?
-
textType matches the registered type of the active text slot and is
valid only for DiagramKeyScope.text.
final
- slotId → String?
-
textType matches the registered type of the active text slot and is
valid only for DiagramKeyScope.text.
final
- textType → String?
-
textType matches the registered type of the active text slot and is
valid only for DiagramKeyScope.text.
final
- verb → String
-
final
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