SFWFConfig class

Main configuration for the SFWF application.

Constructors

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.
const

Properties

appName → String
The display name of the application.
final
baseUrl → String
The base URL of the application.
final
cacheDuration → Duration
Duration that cached content remains valid.
final
enableAI → bool
Whether AI features are enabled.
final
enablePwa → bool
Whether progressive web app support is enabled.
final
hashCode → int
The hash code for this object.
no setterinherited
openAiApiKey → String?
Optional OpenAI API key for AI features.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
seoDefaults → SeoDefaults
Default SEO metadata values.
final
ssrMode → SsrMode
The server-side rendering mode to use.
final
supportedLocales → List<Locale>
The list of locales the application supports.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited