redo method

void redo()

Redo to the next value.

Implementation

void redo() {
  if (canRedo) {
    _isUndoRedoing = true;
    _index++;
    emit(_history[_index]);
    _isUndoRedoing = false;
  }
}