AIConversationStarterConfiguration class
AIConversationStarterConfiguration is a data class that has configuration properties to customize the functionality and appearance of AIConversationStarterExtension
AiConversationStarterConfiguration(
style: AiConversationStarterStyle(),
theme: CometChatTheme(palette: Palette(),typography: Typography())
);
Constructors
-
AIConversationStarterConfiguration({AIConversationStarterStyle? conversationStarterStyle, CometChatTheme? theme, String? loadingStateText, String? errorStateText, String? emptyStateText, Widget customView(List<
String> replies, BuildContext context)?, String? loadingIconUrl, WidgetBuilder? loadingStateView, String? errorIconUrl, WidgetBuilder? errorStateView, WidgetBuilder? emptyStateView, String? emptyIconUrl, String? loadingIconPackageName, String? emptyIconPackageName, String? errorIconPackageName, Future<Map< apiConfiguration(User? user, Group? group)?})String, dynamic> >
Properties
-
apiConfiguration
→ Future<
Map< Function(User? user, Group? group)?String, dynamic> > -
apiConfiguration set the configuration
final
- conversationStarterStyle → AIConversationStarterStyle?
-
conversationStarterStyle provides styling to the reply view
final
-
customView
→ Widget Function(List<
String> replies, BuildContext context)? -
customView gives conversation starter view
final
- emptyIconPackageName → String?
-
emptyIconPackageName package name for empty icon to be displayed when in empty state
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 package name for error icon to be displayed when in error occur
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 package name for loading icon to be displayed when in loading state
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
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- theme → CometChatTheme?
-
theme sets custom theme
final
Methods
-
copyWith(
{AIConversationStarterStyle? conversationStarterStyle, 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? loadingIconPackageName, String? emptyIconPackageName, String? errorIconPackageName, Future<Map< apiConfiguration(User? user, Group? group)?}) → AIConversationStarterConfigurationString, dynamic> > - Copies current AIConversationStarterConfiguration with some changes
-
merge(
AIConversationStarterConfiguration? other) → AIConversationStarterConfiguration -
Merges current AIConversationStarterConfiguration 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