SiteConfig constructor
- required String siteId,
- required String name,
- String color = '#0ea5e9',
- String position = 'right',
- String localeDefault = 'auto',
- Map<
String, String> greeting = const {}, - Map<
String, String> awayMessage = const {}, - OfflineCapture offlineCapture = OfflineCapture.off,
- bool hideWhenOffline = false,
- SiteTheme theme = SiteTheme.auto,
- bool botEnabled = false,
- List<
AgentAvatar> agentAvatars = const [], - LauncherConfig launcher = const LauncherConfig(),
- HeaderConfig? header,
- GreetingOptions? greetingOptions,
- List<
ContactButton> contactButtons = const [], - Json raw = const {},
Creates a site config.
Implementation
const SiteConfig({
required this.siteId,
required this.name,
this.color = '#0ea5e9',
this.position = 'right',
this.localeDefault = 'auto',
this.greeting = const {},
this.awayMessage = const {},
this.offlineCapture = OfflineCapture.off,
this.hideWhenOffline = false,
this.theme = SiteTheme.auto,
this.botEnabled = false,
this.agentAvatars = const [],
this.launcher = const LauncherConfig(),
this.header,
this.greetingOptions,
this.contactButtons = const [],
this.raw = const {},
});