feat: dryRedo on replay_bloc #3551
Labels
enhancement candidate
Candidate for enhancement but additional research is needed
pkg:replay_bloc
This issue is related to the replay_bloc package
I love bloc and cubit, but I'm fighting with a few limitations.
Imagine Cubit as the Navigation stack (back/forward button, etc).
I wish I could do this:
trash.contains(dryRedo())
. I don't want to redo. I want to know if I can redo based on redo value without removing it from its stack.Possible Desired Solutions
history.range(index, history.length)
and get the forward redo history.List<T> undoValues(int? limit)
andList<T> redoValues(int? limit)
, soredoValues(1).first
would do what I want.The last one is slightly more verbose but seems better. I also like the second one. If it were public inside the bloc, at least, I would be able to fix myself. Maybe with tuples it could be
(int, ?) getHistoryIndex
.The text was updated successfully, but these errors were encountered: