redo method
Redo to the next value.
Implementation
void redo() {
if (canRedo) {
_isUndoRedoing = true;
_index++;
emit(_history[_index]);
_isUndoRedoing = false;
}
}
Redo to the next value.
void redo() {
if (canRedo) {
_isUndoRedoing = true;
_index++;
emit(_history[_index]);
_isUndoRedoing = false;
}
}