StatefulNavigationShell constructor
StatefulNavigationShell({
- required ShellRouteContext shellRouteContext,
- required GoRouter router,
- 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);