performUndoableUpdate method
- T reducer(
- T state
Performs an undoable state update.
This will add the current state to the undo history before applying the update.
Implementation
void performUndoableUpdate(T Function(T state) reducer) {
if (controller is UndoRedoMixin<T>) {
(controller as UndoRedoMixin<T>).updateWithUndo(reducer, origin: this);
} else {
// Fallback to regular update if controller doesn't support undo/redo
update(reducer);
}
}