ConversationsConfiguration constructor

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

Implementation

const ConversationsConfiguration(
    {this.conversationsRequestBuilder,
    this.conversationType = ConversationTypes.both,
    this.chatAvatar,
    this.chatConversationItem,
    this.subtitleView,
    this.title,
    this.showBackButton = true,
    this.backButton,
    this.hideStartConversation = false,
    this.startConversationIcon,
    this.theme,
    this.tailView,
    this.hideSeparator,
    this.listItemView,
    this.navigateToAllGroups,
    this.navigateToGroupScreen,
    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.hideReceipt,
    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});