SFWFConfig constructor

const SFWFConfig({
  1. required String appName,
  2. required String baseUrl,
  3. SeoDefaults seoDefaults = const SeoDefaults(),
  4. SsrMode ssrMode = SsrMode.hybrid,
  5. bool enableAI = false,
  6. String? openAiApiKey,
  7. List<Locale> supportedLocales = const [Locale('en')],
  8. Duration cacheDuration = const Duration(minutes: 5),
  9. bool enablePwa = true,
})

Creates a new SFWFConfig with the given parameters.

Implementation

const SFWFConfig({
  required this.appName,
  required this.baseUrl,
  this.seoDefaults = const SeoDefaults(),
  this.ssrMode = SsrMode.hybrid,
  this.enableAI = false,
  this.openAiApiKey,
  this.supportedLocales = const [Locale('en')],
  this.cacheDuration = const Duration(minutes: 5),
  this.enablePwa = true,
});