redo method

void redo()

Implementation

void redo() {
  if (!canRedo) return;
  _historyIndex++;
  state = _history[_historyIndex];
}