AIConversationSummaryConfiguration class
AIConversationSummaryConfiguration is a data class that has configuration properties to customize the functionality and appearance of AIConversationSummaryConfiguration
Constructors
-
AIConversationSummaryConfiguration({Widget customView(String summary, BuildContext context)?, AIConversationSummaryStyle? conversationSummaryStyle, String? title, Future<
Map< apiConfiguration(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(Map<String, dynamic> >String, dynamic> id)?, String? emptyIconPackageName, String? errorIconPackageName, String? loadingIconPackageName})
Properties
-
apiConfiguration
→ Future<
Map< Function(User? user, Group? group)?String, dynamic> > -
apiConfiguration set the api configuration
final
- conversationSummaryStyle → AIConversationSummaryStyle?
-
conversationStarterStyle
provides styling to the reply viewfinal - customView → Widget Function(String summary, BuildContext context)?
-
customView set the custom view
final
- emptyIconPackageName → String?
-
emptyIconPackageName used to set the empty icon package name
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
- errorIconPackageName → String?
-
errorIconPackageName used to set the error icon package name
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
- loadingIconPackageName → String?
-
loadingIconPackageName used to set the error icon package name
final
- 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(Map<
String, dynamic> id)? -
onCloseIconTap used to set the close icon function
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 threshold
final
Methods
-
copyWith(
{AIConversationSummaryStyle? conversationSummaryStyle, 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, String? errorIconPackageName, String? loadingIconPackageName, String? emptyIconPackageName, Future<Map< apiConfiguration(User? user, Group? group)?}) → AIConversationSummaryConfigurationString, dynamic> > - Copies current AIConversationSummaryConfiguration with some changes
-
merge(
AIConversationSummaryConfiguration? other) → AIConversationSummaryConfiguration -
Merges current AIConversationSummaryConfiguration 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