AISmartRepliesConfiguration constructor

AISmartRepliesConfiguration({
  1. AISmartRepliesStyle? smartRepliesStyle,
  2. CometChatTheme? theme,
  3. String? errorStateText,
  4. String? emptyStateText,
  5. OnError? onError,
  6. Widget customView(
    1. List<String> replies,
    2. BuildContext context
    )?,
  7. dynamic onClick(
    1. User? user,
    2. Group? group,
    3. dynamic onSuccess(
      1. Widget,
      2. bool isLoading,
      3. BuildContext context
      ),
    4. dynamic onError(
      1. CometChatException e,
      2. bool isError,
      3. BuildContext context
      ),
    )?,
  8. String? loadingStateText,
  9. String? loadingIconUrl,
  10. WidgetBuilder? loadingStateView,
  11. String? errorIconUrl,
  12. WidgetBuilder? errorStateView,
  13. WidgetBuilder? emptyStateView,
  14. String? emptyIconUrl,
  15. Future<Map<String, dynamic>> apiConfiguration(
    1. User? user,
    2. Group? group
    )?,
})

Implementation

AISmartRepliesConfiguration({
  this.smartRepliesStyle,
  this.theme,
  this.errorStateText,
  this.emptyStateText,
  this.onError,
  this.customView,
  this.onClick,
  this.loadingStateText,
  this.loadingIconUrl,
  this.loadingStateView,
  this.errorIconUrl,
  this.errorStateView,
  this.emptyStateView,
  this.emptyIconUrl,
  this.apiConfiguration,
});