indexedStackConfig<TRouteData extends Widget> static method

StatefulShellRoute indexedStackConfig<TRouteData extends Widget>({
  1. required ShellIndexedStackConfig<TRouteData> config,
})

Build a complete StatefulShellRoute.indexedStack from a ShellIndexedStackConfig.

Implementation

static StatefulShellRoute indexedStackConfig<TRouteData extends Widget>({
  required ShellIndexedStackConfig<TRouteData> config,
}) {
  return StatefulShellRoute.indexedStack(
    branches: config.branches,
    builder: (_, state, __) => config.routeConfig(state),
  );
}