redoState method

SnapState<T>? redoState()

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;
}