FeatureRouter constructor

FeatureRouter({
  1. required GoRouter goRouter,
  2. required String apiKey,
  3. GPTModel? gptModel,
})

Implementation

FeatureRouter({
  required GoRouter goRouter,
  required String apiKey,
  GPTModel? gptModel,
}) : _router = goRouter {
  FeatureSettings().configure(
    aiApiKey: apiKey,
    gptModel: gptModel,
  );

  RouteDataProvider.initializeRoutes(_router.configuration.routes);
}