ConversationsConfiguration constructor

const ConversationsConfiguration({
  1. ConversationsRequestBuilder? conversationsRequestBuilder,
  2. ConversationTypes conversationType = ConversationTypes.both,
  3. Widget? subtitleView(
    1. BuildContext,
    2. Conversation
    )?,
  4. String? title,
  5. bool showBackButton = true,
  6. Widget? backButton,
  7. bool hideStartConversation = false,
  8. Icon? startConversationIcon,
  9. CometChatTheme? theme,
  10. Widget? tailView(
    1. Conversation
    )?,
  11. bool? hideSeparator,
  12. Widget listItemView(
    1. Conversation
    )?,
  13. ConversationsStyle? conversationsStyle,
  14. List<CometChatOption>? options(
    1. Conversation,
    2. CometChatConversationsController controller,
    3. BuildContext context
    )?,
  15. SelectionMode? selectionMode,
  16. dynamic onSelection(
    1. List<Conversation>?
    )?,
  17. String? emptyStateText,
  18. String? errorStateText,
  19. WidgetBuilder? loadingStateText,
  20. WidgetBuilder? emptyStateView,
  21. WidgetBuilder? errorStateView,
  22. dynamic stateCallBack(
    1. CometChatConversationsController controller
    )?,
  23. ListItemStyle? listItemStyle,
  24. AvatarStyle? avatarStyle,
  25. StatusIndicatorStyle? statusIndicatorStyle,
  26. ReceiptStyle? receiptStyle,
  27. bool? disableUsersPresence,
  28. bool? disableReceipt,
  29. Widget? protectedGroupIcon,
  30. Widget? privateGroupIcon,
  31. Widget? readIcon,
  32. Widget? deliveredIcon,
  33. Widget? sentIcon,
  34. String datePattern(
    1. Conversation conversation
    )?,
  35. String? typingIndicatorText,
  36. DateStyle? dateStyle,
  37. BadgeStyle? badgeStyle,
  38. String? customSoundForMessages,
  39. bool? disableSoundForMessages,
  40. ConversationsBuilderProtocol? conversationsProtocol,
  41. bool? hideError,
  42. List<Widget>? appBarOptions,
  43. ActivateSelection? activateSelection,
  44. ScrollController? controller,
  45. OnError? onError,
  46. VoidCallback? onBack,
  47. dynamic onItemTap(
    1. Conversation
    )?,
  48. dynamic onItemLongPress(
    1. Conversation
    )?,
  49. bool? disableTyping,
  50. ConfirmDialogStyle? deleteConversationDialogStyle,
  51. bool? hideAppbar,
  52. bool? disableMentions,
  53. List<CometChatTextFormatter>? textFormatters,
})

Implementation

const ConversationsConfiguration(
    {this.conversationsRequestBuilder,
    this.conversationType = ConversationTypes.both,
    this.subtitleView,
    this.title,
    this.showBackButton = true,
    this.backButton,
    this.hideStartConversation = false,
    this.startConversationIcon,
    this.theme,
    this.tailView,
    this.hideSeparator,
    this.listItemView,
    this.conversationsStyle,
    this.options,
    this.selectionMode,
    this.onSelection,
    this.emptyStateText,
    this.errorStateText,
    this.loadingStateText,
    this.emptyStateView,
    this.errorStateView,
    this.stateCallBack,
    this.listItemStyle,
    this.avatarStyle,
    this.statusIndicatorStyle,
    this.receiptStyle,
    this.disableUsersPresence,
    this.disableReceipt,
    this.protectedGroupIcon,
    this.privateGroupIcon,
    this.readIcon,
    this.deliveredIcon,
    this.sentIcon,
    this.datePattern,
    this.typingIndicatorText,
    this.dateStyle,
    this.badgeStyle,
    this.customSoundForMessages,
    this.disableSoundForMessages,
    this.conversationsProtocol,
    this.hideError,
    this.appBarOptions,
    this.activateSelection,
    this.controller,
    this.onError,
    this.onBack,
    this.onItemTap,
    this.onItemLongPress,
    this.disableTyping,
    this.deleteConversationDialogStyle,
    this.hideAppbar,
    this.disableMentions,
    this.textFormatters});