CarpenterHotkeyShell class final

Application shell that publishes hotkey runtime capability and wraps content in a CarpenterHotkeyScope.

Inheritance

Constructors

CarpenterHotkeyShell({List<CarpenterCommand<void>> commands = const [], CarpenterHotkeyCommandCallback? onCommand, CarpenterHotkeyController? controller, TargetPlatform? platform, bool trackPressedKeys = true, bool autofocus = true})
Creates a hotkey shell.
const

Properties

autofocus → bool
Whether the hosted hotkey focus scope requests focus automatically.
final
commands → List<CarpenterCommand<void>>
Commands bound by the hosted hotkey scope.
final
controller → CarpenterHotkeyController?
Optional externally owned hotkey controller.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Stable shell identifier used for diagnostics and capability-composition errors.
no setteroverride
onCommand → CarpenterHotkeyCommandCallback?
Optional observer invoked immediately before a keyboard shortcut executes its command.
final
platform → TargetPlatform?
Optional shortcut-platform override; otherwise the core runtime platform is used.
final
provides → Set<Type>
Declares that successful configuration registers CarpenterHotkeyRuntime.
no setteroverride
requires → Set<Type>
Default empty capability requirement set.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
trackPressedKeys → bool
Whether the hosted hotkey scope records pressed-key snapshots.
final

Methods

configure(CarpenterShellConfigureContext context) → CarpenterRuntime
Chooses the effective platform and extends runtime with the concrete controller and command set used by wrap.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
wrap(CarpenterShellBuildContext context, Widget child) → Widget
Reads the configured hotkey capability and installs CarpenterHotkeyScope around hosted content.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited