app_router top-level property

GoRouter app_router
final

Implementation

final GoRouter app_router = GoRouter(
  observers: GoRouterParams.goRouterObservers,
  initialLocation: '/',
  routes: [
    GoRoute(
      path: '/',
      builder: (BuildContext context, GoRouterState state) {
        return _WorkSpacePage();
      },
    ),
  ],
  redirect: (BuildContext context, GoRouterState state) async {
    await readyAfterMaterialApp(context);
    return null;
  },
);