ActivityStatefulShellRoute.indexedStack constructor
ActivityStatefulShellRoute.indexedStack({
- required List<
ActivityShellBranch> branches, - required Widget builder(),
- String? restorationScopeId,
- ActivityRedirect? redirect,
Implementation
ActivityStatefulShellRoute.indexedStack({
required List<ActivityShellBranch> branches,
required this.builder,
this.restorationScopeId,
super.parentNavigatorKey,
super.redirect,
}) : branches = List.unmodifiable(branches),
super(routes: [for (final branch in branches) ...branch.routes]) {
if (branches.isEmpty) {
throw ArgumentError('A stateful shell needs branches');
}
}