redo method

void redo()

Redoes the last undone action.

Implementation

void redo() {
  if (_undoStack[_currentPage]?.isNotEmpty == true) {
    var lastAction = _undoStack[_currentPage]!.removeLast();
    _history[_currentPage]!.add(lastAction);
    notifyListeners();
  }
}