SiteConfig constructor

const SiteConfig({
  1. required String siteId,
  2. required String name,
  3. String color = '#0ea5e9',
  4. String position = 'right',
  5. String localeDefault = 'auto',
  6. Map<String, String> greeting = const {},
  7. Map<String, String> awayMessage = const {},
  8. OfflineCapture offlineCapture = OfflineCapture.off,
  9. bool hideWhenOffline = false,
  10. SiteTheme theme = SiteTheme.auto,
  11. bool botEnabled = false,
  12. List<AgentAvatar> agentAvatars = const [],
  13. LauncherConfig launcher = const LauncherConfig(),
  14. HeaderConfig? header,
  15. GreetingOptions? greetingOptions,
  16. List<ContactButton> contactButtons = const [],
  17. 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 {},
});