redo method
Implementation
bool redo({
required State Function() captureState,
required void Function(State state) restoreState,
}) {
if (_redoStack.isEmpty) {
return false;
}
breakCoalescing();
final current = captureState();
final next = _redoStack.removeLast();
_undoStack.add(current);
restoreState(next);
return true;
}