createStatefulShellBranches method
List
createStatefulShellBranches( - dynamic appAttributes,
- List<(dynamic, dynamic)> allPagesWithConfigs
)
Implementation
List<StatefulShellBranch> createStatefulShellBranches(
AppAttributes appAttributes,
List<(Widget, StatefulBranchInfoProvider)> allPagesWithConfigs,
) {
List<StatefulShellBranch> branches = [];
for (int i = 0; i < allPagesWithConfigs.length; i++) {
final pageWithConfig = allPagesWithConfigs[i];
branches.add(
StatefulShellBranch(
routes: <RouteBase>[
buildGoRouteForSPA(pageWithConfig, appAttributes),
],
),
);
}
return branches;
}