AIAssistBotConfiguration class

AIAssistBotConfiguration is a data class that has configuration properties to customize the functionality and appearance of AIAssistBotExtension

  AIAssistBotConfiguration(
   style: AiConversationAssistBotStyle(),
   theme: CometChatTheme(palette: Palette(),typography: Typography())
 );

Constructors

AIAssistBotConfiguration({AIAssistBotStyle? aiAssistBotStyle, String? title, Future<Map<String, dynamic>> apiConfiguration(User aiBot, User? user, Group? group)?, int? unreadMessageThreshold = 30, CometChatTheme? theme, String? loadingStateText, String? errorStateText, String? emptyStateText, String? loadingIconUrl, WidgetBuilder? loadingStateView, String? errorIconUrl, WidgetBuilder? errorStateView, WidgetBuilder? emptyStateView, String? emptyIconUrl, dynamic onCloseIconTap()?})

Properties

aiAssistBotStyle AIAssistBotStyle?
aiAssistBotStyle provides styling to the reply view
final
apiConfiguration Future<Map<String, dynamic>> Function(User aiBot, User? user, Group? group)?
apiConfiguration set the configuration
final
emptyIconUrl String?
emptyIconUrl used to set the empty icon
final
emptyStateText String?
emptyStateText text to be displayed when the replies are empty
final
emptyStateView WidgetBuilder?
emptyStateView returns view for empty state
final
errorIconUrl String?
errorIconUrl used to set the error icon
final
errorStateText String?
errorStateText text to be displayed when error occur
final
errorStateView WidgetBuilder?
errorStateView returns view for error state
final
hashCode int
The hash code for this object.
no setterinherited
loadingIconUrl String?
loadingIconUrl used to set the loading icon
final
loadingStateText String?
loadingStateText text to be displayed when loading occur
final
loadingStateView WidgetBuilder?
loadingStateView returns view for loading state
final
onCloseIconTap → dynamic Function()?
onCloseIconTap used to set callback for close icon
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
theme CometChatTheme?
theme sets custom theme
final
title String?
title set the title
final
unreadMessageThreshold int?
unreadMessageThreshold set the unread message count
final

Methods

copyWith({AIAssistBotStyle? aiAssistBotStyle, CometChatTheme? theme, String? emptyStateText, String? loadingStateText, String? errorStateText, Widget customView(List<String> replies, BuildContext context)?, Widget conversationStarterEmptyView(List<String> replies, BuildContext context)?, WidgetBuilder? emptyStateView, WidgetBuilder? loadingStateView, WidgetBuilder? errorStateView, String? errorIconUrl, String? emptyIconUrl, String? loadingIconUrl, Future<Map<String, dynamic>> apiConfiguration(User aiBot, User? user, Group? group)?}) AIAssistBotConfiguration
Copies current AIAssistBotConfiguration with some changes
merge(AIAssistBotConfiguration? other) AIAssistBotConfiguration
Merges current AIAssistBotConfiguration with other
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