CometChatConversations constructor

const CometChatConversations({
  1. Key? key,
  2. ConversationsBuilderProtocol? conversationsProtocol,
  3. Widget? subtitleView(
    1. BuildContext context,
    2. Conversation conversation
    )?,
  4. Widget listItemView(
    1. Conversation conversation
    )?,
  5. CometChatConversationsStyle conversationsStyle = const CometChatConversationsStyle(),
  6. ScrollController? scrollController,
  7. Widget? backButton,
  8. bool showBackButton = false,
  9. SelectionMode? selectionMode,
  10. dynamic onSelection(
    1. List<Conversation>? list
    )?,
  11. String? title,
  12. ConversationsRequestBuilder? conversationsRequestBuilder,
  13. bool? hideError,
  14. WidgetBuilder? emptyStateView,
  15. WidgetBuilder? errorStateView,
  16. ListItemStyle? listItemStyle,
  17. Widget? trailingView(
    1. Conversation conversation
    )?,
  18. List<Widget>? appBarOptions,
  19. bool? usersStatusVisibility = true,
  20. bool? receiptsVisibility = true,
  21. Widget? protectedGroupIcon,
  22. Widget? privateGroupIcon,
  23. Widget? readIcon,
  24. Widget? deliveredIcon,
  25. Widget? sentIcon,
  26. ActivateSelection? activateSelection,
  27. String datePattern(
    1. Conversation conversation
    )?,
  28. String? typingIndicatorText,
  29. VoidCallback? onBack,
  30. dynamic onItemTap(
    1. Conversation conversation
    )?,
  31. dynamic onItemLongPress(
    1. Conversation conversation
    )?,
  32. bool? hideAppbar = false,
  33. List<CometChatTextFormatter>? textFormatters,
  34. String? mentionAllLabel,
  35. String? mentionAllLabelId,
  36. EdgeInsets? datePadding,
  37. double? dateHeight,
  38. bool? dateBackgroundIsTransparent,
  39. double? dateWidth,
  40. double? badgeWidth,
  41. double? badgeHeight,
  42. EdgeInsetsGeometry? badgePadding,
  43. double? statusIndicatorWidth,
  44. double? statusIndicatorHeight,
  45. BorderRadiusGeometry? statusIndicatorBorderRadius,
  46. EdgeInsetsGeometry? avatarMargin,
  47. EdgeInsetsGeometry? avatarPadding,
  48. double? avatarWidth,
  49. double? avatarHeight,
  50. bool? deleteConversationOptionVisibility = true,
  51. bool? groupTypeVisibility = true,
  52. List<CometChatOption>? setOptions(
    1. Conversation conversation,
    2. ConversationsBloc bloc,
    3. BuildContext context
    )?,
  53. List<CometChatOption>? addOptions(
    1. Conversation conversation,
    2. ConversationsBloc bloc,
    3. BuildContext context
    )?,
  54. WidgetBuilder? loadingStateView,
  55. Widget? leadingView(
    1. BuildContext context,
    2. Conversation conversation
    )?,
  56. Widget? titleView(
    1. BuildContext context,
    2. Conversation conversation
    )?,
  57. String? controllerTag,
  58. OnLoad<Conversation>? onLoad,
  59. OnEmpty? onEmpty,
  60. OnError? onError,
  61. String? customSoundForMessages,
  62. bool? disableSoundForMessages = false,
  63. Widget? submitIcon,
  64. DateTimeFormatterCallback? dateTimeFormatterCallback,
  65. ConversationsBloc? conversationsBloc,
  66. RouteObserver<ModalRoute<void>>? routeObserver,
  67. bool? hideSearch,
  68. bool searchReadOnly = false,
  69. GestureTapCallback? onSearchTap,
  70. Widget? searchBoxIcon,
  71. EdgeInsetsGeometry? searchPadding,
  72. EdgeInsetsGeometry? searchContentPadding,
})

Implementation

const CometChatConversations({
  super.key,
  this.conversationsProtocol,
  this.subtitleView,
  this.listItemView,
  this.conversationsStyle = const CometChatConversationsStyle(),
  this.scrollController,
  this.backButton,
  this.showBackButton = false,
  this.selectionMode,
  this.onSelection,
  this.title,
  this.conversationsRequestBuilder,
  this.hideError,
  this.emptyStateView,
  this.errorStateView,
  this.listItemStyle,
  this.trailingView,
  this.appBarOptions,
  this.usersStatusVisibility = true,
  this.receiptsVisibility = true,
  this.protectedGroupIcon,
  this.privateGroupIcon,
  this.readIcon,
  this.deliveredIcon,
  this.sentIcon,
  this.activateSelection,
  this.datePattern,
  this.typingIndicatorText,
  this.onBack,
  this.onItemTap,
  this.onItemLongPress,
  this.hideAppbar = false,
  this.textFormatters,
  this.mentionAllLabel,
  this.mentionAllLabelId,
  this.datePadding,
  this.dateHeight,
  this.dateBackgroundIsTransparent,
  this.dateWidth,
  this.badgeWidth,
  this.badgeHeight,
  this.badgePadding,
  this.statusIndicatorWidth,
  this.statusIndicatorHeight,
  this.statusIndicatorBorderRadius,
  this.avatarMargin,
  this.avatarPadding,
  this.avatarWidth,
  this.avatarHeight,
  this.deleteConversationOptionVisibility = true,
  this.groupTypeVisibility = true,
  this.setOptions,
  this.addOptions,
  this.loadingStateView,
  this.leadingView,
  this.titleView,
  this.controllerTag,
  this.onLoad,
  this.onEmpty,
  this.onError,
  this.customSoundForMessages,
  this.disableSoundForMessages = false,
  this.submitIcon,
  this.dateTimeFormatterCallback,
  this.conversationsBloc,
  this.routeObserver,
  this.hideSearch,
  this.searchReadOnly = false,
  this.onSearchTap,
  this.searchBoxIcon,
  this.searchPadding,
  this.searchContentPadding,
});