redo method

void redo()

Redoes the last undone painting action by moving it from the redo history to the history and notifies listeners.

Implementation

void redo() {
  if (historyPosition < paintHistory.length) {
    historyPosition++;
  }
}