ShortcutRegistryRaiiExt extension
Extension for managing ShortcutRegistry lifecycle.
Example:
final registry = ShortcutRegistry()
.withLifecycle(this, debugLabel: 'ShortcutRegistry');
Methods
-
withLifecycle(
RaiiLifecycleAware lifecycleAware, {String? debugLabel}) → ShortcutRegistry -
Available on ShortcutRegistry, provided by the ShortcutRegistryRaiiExt extension
Attaches this shortcut registry to a RaiiLifecycleAware object.