router top-level property Other

GoRouter router
final

The router for the different screens of the ReVoiceMe app.

{@category Other}

Implementation

final GoRouter router = GoRouter(
  /// The routes to the different screens of the ReVoiceMe app.
  routes: <RouteBase>[
    GoRoute(
      path: routes["home"]!.path,
      builder: (BuildContext context, GoRouterState state) =>
          const HomeScreen(),
    ),
    GoRoute(
      path: routes["configurator"]!.path,
      builder: (BuildContext context, GoRouterState state) =>
          const ConfiguratorScreen(),
    ),
  ],
);