FFGenUIChatWidgetProperties constructor

FFGenUIChatWidgetProperties({
  1. FFGenUIBackendConfig? backendConfig,
  2. FFStringValue? userSystemPrompt,
  3. Iterable<String>? catalogComponentKeys,
  4. FFGenUIChatStyling? styling,
  5. Iterable<FFGenUIFunctionConfig>? functionConfigs,
  6. FFStringValue? thinkingMessage,
  7. Iterable<FFGenUIAppEventListenerConfig>? appEventListenerConfigs,
})

Implementation

factory FFGenUIChatWidgetProperties({
  FFGenUIBackendConfig? backendConfig,
  FFStringValue? userSystemPrompt,
  $core.Iterable<$core.String>? catalogComponentKeys,
  FFGenUIChatStyling? styling,
  $core.Iterable<FFGenUIFunctionConfig>? functionConfigs,
  FFStringValue? thinkingMessage,
  $core.Iterable<FFGenUIAppEventListenerConfig>? appEventListenerConfigs,
}) {
  final result = create();
  if (backendConfig != null) result.backendConfig = backendConfig;
  if (userSystemPrompt != null) result.userSystemPrompt = userSystemPrompt;
  if (catalogComponentKeys != null)
    result.catalogComponentKeys.addAll(catalogComponentKeys);
  if (styling != null) result.styling = styling;
  if (functionConfigs != null) result.functionConfigs.addAll(functionConfigs);
  if (thinkingMessage != null) result.thinkingMessage = thinkingMessage;
  if (appEventListenerConfigs != null)
    result.appEventListenerConfigs.addAll(appEventListenerConfigs);
  return result;
}