defaultRoute property Null safety

ShellRoute defaultRoute
final

Implementation

static final defaultRoute = ShellRoute(
  navigatorKey: navigator,
  pageBuilder: (context, state, child) => UnRootSheetPage(
    child: MultiProvider(
      // create: (_) => navigator,
      providers: [
        Provider(create: (_) => navigator),
        // Provider(create: (_) => HomeBloc(navigator: _.read())),
      ],
      child: AppShell._(destinations: [
        _AppShellDestination(
          path: const UnpackRoutes().location,
          icon: const Icon(UnSymbols.list),
          selectedIcon: const Icon(UnSymbols.listFilled),
          label: 'Unpack',
        ),
        _AppShellDestination(
          path: const SettingsRoutes().location,
          icon: const Icon(UnSymbols.list),
          selectedIcon: const Icon(UnSymbols.listFilled),
          label: 'Timeline',
        ),
      ], child: child),
    ),
  ),
  // observers:  [
  // AppRoute.defaultObserver,
  // ],
  routes: [
    // $sessionFlow,
    // Workaround for go_router_builder #2672
    // ..routes.insertAll(0, <GoRoute>[
    //   GoRoute(
    //     path: ":id/edit",
    //     parentNavigatorKey: AppRoute.defaultNavigator,
    //     pageBuilder: (_, state) => SessionEditRoute(state.params["id"]!)
    //         .buildPage(_, state),
    //   ),
    // ]),
    // $exerciseFlow,
    // ..routes.insertAll(0, <GoRoute>[
    //   GoRoute(
    //     path: ":id/start",
    //     parentNavigatorKey: AppRoute.defaultNavigator,
    //     pageBuilder: (_, state) => ExerciseStartRoute(state.params["id"]!)
    //         .buildPage(_, state),
    //   ),
    // ]),
    $unpackRoutes,
    $settingsRoutes,
  ],
);