$branch<T extends StatefulShellBranchData> static method

StatefulShellBranch $branch<T extends StatefulShellBranchData>({
  1. GlobalKey<NavigatorState>? navigatorKey,
  2. List<RouteBase> routes = const <RouteBase>[],
  3. List<NavigatorObserver>? observers,
  4. String? initialLocation,
  5. String? restorationScopeId,
})

A helper function used by generated code.

Should not be used directly.

Implementation

static StatefulShellBranch $branch<T extends StatefulShellBranchData>({
  GlobalKey<NavigatorState>? navigatorKey,
  List<RouteBase> routes = const <RouteBase>[],
  List<NavigatorObserver>? observers,
  String? initialLocation,
  String? restorationScopeId,
}) {
  return StatefulShellBranch(
    routes: routes,
    navigatorKey: navigatorKey,
    observers: observers,
    initialLocation: initialLocation,
    restorationScopeId: restorationScopeId,
  );
}