AISmartRepliesConfiguration class
Constructors
-
AISmartRepliesConfiguration({AISmartRepliesStyle? smartRepliesStyle, CometChatTheme? theme, String? errorStateText, String? emptyStateText, OnError? onError, Widget customView(List<String> replies, BuildContext context)?, dynamic onClick(User? user, Group? group, dynamic onSuccess(Widget, bool isLoading, BuildContext context), dynamic onError(CometChatException e, bool isError, BuildContext context))?, String? loadingStateText, String? loadingIconUrl, WidgetBuilder? loadingStateView, String? errorIconUrl, WidgetBuilder? errorStateView, WidgetBuilder? emptyStateView, String? emptyIconUrl, Future<Map<String, dynamic>> apiConfiguration(User? user, Group? group)?})
-
Properties
-
apiConfiguration
→ Future<Map<String, dynamic>> Function(User? user, Group? group)?
-
apiConfiguration set the configuration
final
-
customView
→ Widget Function(List<String> replies, BuildContext context)?
-
customView return custom smartReply view
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 fow 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
-
onClick
→ dynamic Function(User? user, Group? group, dynamic onSuccess(Widget, bool isLoading, BuildContext context), dynamic onError(CometChatException e, bool isError, BuildContext context))?
-
onClick function when user wants to send custom ui along with replies
final
-
onError
→ OnError?
-
onError callback triggered in case any error happens when fetching replies
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
smartRepliesStyle
→ AISmartRepliesStyle?
-
smartRepliesStyle provides styling to the reply view
final
-
theme
→ CometChatTheme?
-
theme sets custom theme
final
Methods
-
copyWith({AISmartRepliesStyle? smartRepliesStyle, CometChatTheme? theme, String? emptyStateText, OnError? onError, String? errorStateText, Widget customView(List<String> replies, BuildContext context)?, dynamic onClick(User? user, Group? group, dynamic onSuccess(Widget, bool isLoading, BuildContext context), dynamic onError(CometChatException e, bool isError, BuildContext context))?, String? loadingStateText, WidgetBuilder? emptyStateView, WidgetBuilder? loadingStateView, WidgetBuilder? errorStateView, String? errorIconUrl, String? emptyIconUrl, String? loadingIconUrl, Future<Map<String, dynamic>> apiConfiguration(User? user, Group? group)?})
→ AISmartRepliesConfiguration
-
Copies current AISmartRepliesConfiguration with some changes
-
merge(AISmartRepliesConfiguration? other)
→ AISmartRepliesConfiguration
-
Merges current AISmartRepliesConfiguration 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