I have a router stack like pageA -> pageB -> pageC -> pageD, and I want to pop to pageA from pageD.
If use Navigator.of(context).popUntil, all page's pop transition will be run, but I just want to run the pageD transition because every page's navigator transition is different.
I find Navigator.removeRouteBelow and Navigator.removeRoute, but I can't get the Route instance of PageB or PageC.
Has there a method like removeUntil, or any way to resolve my question? Thanks.