UndoHistoryControllerRaiiExt extension

Extension for managing UndoHistoryController lifecycle.

Example:

final undoController = UndoHistoryController()
  .withLifecycle(this, debugLabel: 'UndoController');
on

Methods

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

Available on UndoHistoryController, provided by the UndoHistoryControllerRaiiExt extension

Attaches this undo history controller to a RaiiLifecycleAware object.