ShortcutManagerRaiiExt extension

Extension for managing ShortcutManager lifecycle.

Example:

final shortcuts = ShortcutManager()
  .withLifecycle(this, debugLabel: 'ShortcutManager');
on

Methods

withLifecycle(RaiiLifecycleAware lifecycleAware, {String? debugLabel}) ShortcutManager

Available on ShortcutManager, provided by the ShortcutManagerRaiiExt extension

Attaches this shortcut manager to a RaiiLifecycleAware object.