Skip to content

Commit c6d51e8

Browse files
committed
Remove non-existent UndoableCommand methods from documentation
Removed fictional methods that don't exist in actual API: - redo() - does not exist - canUndo - does not exist - canRedo - does not exist - clearStack() - does not exist Only undo() method exists in UndoableCommand class. Verified against: undoable_command.dart (complete file read, only undo() at line 86)
1 parent 45e8282 commit c6d51e8

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

docs/documentation/command_it/command_types.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,7 @@ All other parameters (`initialValue`, `restriction`, `errorFilter`, etc.) work t
179179

180180
**Additional methods:**
181181

182-
Undoable commands provide undo/redo functionality:
183-
184-
- **`undo()`** - Undo the last operation
185-
- **`redo()`** - Redo the last undone operation
186-
- **`canUndo`** - `ValueListenable<bool>` indicating if undo is available
187-
- **`canRedo`** - `ValueListenable<bool>` indicating if redo is available
188-
- **`clearStack()`** - Clear the entire undo/redo stack
182+
- **`undo()`** - Manually undo the last operation by calling the undo handler. The undo handler receives the `UndoStack` and can pop state to restore previous values
189183

190184
**See also:**
191185
- [Best Practices - Undoable Commands](/documentation/command_it/best_practices#pattern-5-undoable-commands-with-automatic-rollback) for practical examples

0 commit comments

Comments
 (0)