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.
If a name is specified for a nested route, but do not set it for a parent route, then namedLocation will not find a route by the name of the nested route.
If a name is specified for a nested route, but do not set it for a parent route, then
namedLocation
will not find a route by the name of the nested route.