clear method
void
clear()
Clears all drawings, text boxes, and undo stack for the current page.
Implementation
void clear() {
_history[_currentPage] = [];
_undoStack[_currentPage] = [];
notifyListeners();
}
Clears all drawings, text boxes, and undo stack for the current page.
void clear() {
_history[_currentPage] = [];
_undoStack[_currentPage] = [];
notifyListeners();
}