CarpenterHotkeyFormatter class final

Formats shortcut activators and pressed logical keys using platform-appropriate modifier names and separators.

Constructors

CarpenterHotkeyFormatter({required TargetPlatform platform})
Creates a key formatter for platform.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
platform TargetPlatform
Target platform used for platform-sensitive Carpenter behavior.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

formatActivator(ShortcutActivator activator) String
Formats a shortcut activator for display, using platform-specific modifier names and compact Apple glyph notation where applicable.
formatPressedKeys(Iterable<LogicalKeyboardKey> keys) String
Formats pressed logical keys in iteration order using the same platform-specific key naming as shortcut activators.
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