AiChatConfig constructor
const
AiChatConfig({
- String userName = 'User',
- String aiName = 'AI',
- String? hintText,
- double? maxWidth,
- EdgeInsets? padding,
- bool enableAnimation = true,
- bool showTimestamp = true,
- bool readOnly = false,
- bool persistentExampleQuestions = false,
- bool enableMarkdownStreaming = true,
- List<
ExampleQuestion> exampleQuestions = const [], - Duration streamingDuration = const Duration(milliseconds: 30),
- InputOptions? inputOptions,
- MessageOptions? messageOptions,
- MessageListOptions? messageListOptions,
- QuickReplyOptions? quickReplyOptions,
- ScrollToBottomOptions? scrollToBottomOptions,
- WelcomeMessageConfig? welcomeMessageConfig,
- LoadingConfig loadingConfig = const LoadingConfig(),
- PaginationConfig paginationConfig = const PaginationConfig(),
- List<
ChatUser> ? typingUsers, - ScrollBehaviorConfig? scrollBehaviorConfig,
Implementation
const AiChatConfig({
// Basic settings
this.userName = 'User',
this.aiName = 'AI',
this.hintText,
this.maxWidth,
this.padding,
// Feature flags
this.enableAnimation = true,
this.showTimestamp = true,
this.readOnly = false,
this.persistentExampleQuestions = false,
this.enableMarkdownStreaming = true,
// Message content options
this.exampleQuestions = const [],
this.streamingDuration = const Duration(milliseconds: 30),
// Main options aligned with Dila
this.inputOptions,
this.messageOptions,
this.messageListOptions,
this.quickReplyOptions,
this.scrollToBottomOptions,
// Specialized configs
this.welcomeMessageConfig,
this.loadingConfig = const LoadingConfig(),
this.paginationConfig = const PaginationConfig(),
// Other options
this.typingUsers,
/// Configuration for scroll behavior
this.scrollBehaviorConfig,
});