redoState method
redo to the next valid state (isWaiting and hasError are ignored)
Implementation
SnapState<T>? redoState() {
if (!canRedoState) {
return null;
}
_undoQueue.add(_redoQueue.removeLast());
return _undoQueue.last;
}
redo to the next valid state (isWaiting and hasError are ignored)
SnapState<T>? redoState() {
if (!canRedoState) {
return null;
}
_undoQueue.add(_redoQueue.removeLast());
return _undoQueue.last;
}