In flutter, I've a use case where I want to bring back the same route on top of the screen if its already present, otherwise push a new route.
As an example,
Current stack : A -> B -> C -> D (top most)
If I push B, I just want A -> C -> D -> B. I want to bring B to the front with its state.
I went through the documentation but couldn't figure out a way to do this. Has someone figure out a way to do this?