This is actually a short version of this question (at least these questions are related in meaning).
Is the following routes structure valid? (hint: these are nested ‘routes’ sections)
final _router = GoRouter(
initialLocation: '/',
routes: [
GoRoute(
path: '/',
builder: (context, state) => const HomeView(),
routes: [
...
GoRoute(
path: 'rapports',
builder: (context, state) {
return const RapportListViewMod();
},
routes: [
GoRoute(
path: '/groupWithExtraParam',
builder: (context, state) {
...
},
),
],
),
...
],
),
...
]
);