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.
allows for a fast mapping for goNamed at runtime and we're already reading the whole tree at ctor time to produce useful named-based error messages.