setPage method
Sets the active page and initializes data structures if needed.
Implementation
void setPage(int page) {
_currentPage = page;
_history.putIfAbsent(page, () => []);
_undoStack.putIfAbsent(page, () => []);
notifyListeners();
}
Sets the active page and initializes data structures if needed.
void setPage(int page) {
_currentPage = page;
_history.putIfAbsent(page, () => []);
_undoStack.putIfAbsent(page, () => []);
notifyListeners();
}