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.
it should take two functions:
That's what the real API is for Nav2 and on top of that can be built the declarative routing solution that's in place now.