createStatefulShellBranches method

List<StatefulShellBranch> createStatefulShellBranches(
  1. AppAttributes appAttributes,
  2. List<(Widget, StatefulBranchInfoProvider)> allPagesWithConfigs
)
inherited

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;
}