withLifecycle method
Attaches this undo history controller to a RaiiLifecycleAware object.
Implementation
UndoHistoryController withLifecycle(
RaiiLifecycleAware lifecycleAware, {
String? debugLabel,
}) {
RaiiDisposeable.withLifecycle(
lifecycleAware,
dispose: dispose,
debugLabel: debugLabel,
);
return this;
}