SFWFConfig constructor
const
SFWFConfig({
- required String appName,
- required String baseUrl,
- SeoDefaults seoDefaults = const SeoDefaults(),
- SsrMode ssrMode = SsrMode.hybrid,
- bool enableAI = false,
- String? openAiApiKey,
- List<
Locale> supportedLocales = const [Locale('en')], - Duration cacheDuration = const Duration(minutes: 5),
- 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,
});