ActivityShellBranch constructor
ActivityShellBranch({
- required List<
ActivityRouteBase> routes, - String? initialLocation,
- String? restorationScopeId,
- List<
NavigatorObserver> observers = const [],
Implementation
ActivityShellBranch({
required List<ActivityRouteBase> routes,
GlobalKey<NavigatorState>? navigatorKey,
this.initialLocation,
this.restorationScopeId,
this.observers = const [],
}) : routes = List.unmodifiable(routes),
navigatorKey = navigatorKey ?? GlobalKey<NavigatorState>() {
if (routes.isEmpty) throw ArgumentError('A shell branch needs routes');
}