The purpose of the go_router for Flutter is to use declarative routes to reduce complexity, regardless of the platform you're targeting (mobile, web, desktop), handling deep linking from Android, iOS and the web while still allowing an easy-to-use developer experience.
Thanks for the remarkable package! Sometimes I want to pop all pages until I arrivte at my home page.
I found this way to implement it:
This is not perfect because the location contains all the parameters, so I have to use the contains-operator. Is there any better way to archive this?
Thanks!