withLifecycle method
Attaches this shortcut registry to a RaiiLifecycleAware object.
Implementation
ShortcutRegistry withLifecycle(
RaiiLifecycleAware lifecycleAware, {
String? debugLabel,
}) {
RaiiDisposeable.withLifecycle(
lifecycleAware,
dispose: dispose,
debugLabel: debugLabel,
);
return this;
}