StatefulNavigationShell constructor

StatefulNavigationShell({
  1. required ShellRouteContext shellRouteContext,
  2. required GoRouter router,
  3. required ShellNavigationContainerBuilder containerBuilder,
})

Constructs an StatefulNavigationShell.

Implementation

StatefulNavigationShell({
  required this.shellRouteContext,
  required GoRouter router,
  required this.containerBuilder,
})  : assert(shellRouteContext.route is StatefulShellRoute),
      _router = router,
      currentIndex = _indexOfBranchNavigatorKey(
          shellRouteContext.route as StatefulShellRoute,
          shellRouteContext.navigatorKey),
      super(
          key:
              (shellRouteContext.route as StatefulShellRoute)._shellStateKey);