CometChatConversations constructor
const
CometChatConversations({
- Key? key,
- ConversationsBuilderProtocol? conversationsProtocol,
- Widget? subtitleView(
- BuildContext context,
- Conversation conversation
- Widget listItemView(
- Conversation conversation
- CometChatConversationsStyle conversationsStyle = const CometChatConversationsStyle(),
- ScrollController? scrollController,
- Widget? backButton,
- bool showBackButton = false,
- SelectionMode? selectionMode,
- dynamic onSelection(
- List<
Conversation> ? list
- List<
- String? title,
- ConversationsRequestBuilder? conversationsRequestBuilder,
- bool? hideError,
- WidgetBuilder? emptyStateView,
- WidgetBuilder? errorStateView,
- ListItemStyle? listItemStyle,
- Widget? trailingView(
- Conversation conversation
- List<
Widget> ? appBarOptions, - bool? usersStatusVisibility = true,
- bool? receiptsVisibility = true,
- Widget? protectedGroupIcon,
- Widget? privateGroupIcon,
- Widget? readIcon,
- Widget? deliveredIcon,
- Widget? sentIcon,
- ActivateSelection? activateSelection,
- String datePattern(
- Conversation conversation
- String? typingIndicatorText,
- VoidCallback? onBack,
- dynamic onItemTap(
- Conversation conversation
- dynamic onItemLongPress(
- Conversation conversation
- bool? hideAppbar = false,
- List<
CometChatTextFormatter> ? textFormatters, - String? mentionAllLabel,
- String? mentionAllLabelId,
- EdgeInsets? datePadding,
- double? dateHeight,
- bool? dateBackgroundIsTransparent,
- double? dateWidth,
- double? badgeWidth,
- double? badgeHeight,
- EdgeInsetsGeometry? badgePadding,
- double? statusIndicatorWidth,
- double? statusIndicatorHeight,
- BorderRadiusGeometry? statusIndicatorBorderRadius,
- EdgeInsetsGeometry? avatarMargin,
- EdgeInsetsGeometry? avatarPadding,
- double? avatarWidth,
- double? avatarHeight,
- bool? deleteConversationOptionVisibility = true,
- bool? groupTypeVisibility = true,
- List<
CometChatOption> ? setOptions(- Conversation conversation,
- ConversationsBloc bloc,
- BuildContext context
- List<
CometChatOption> ? addOptions(- Conversation conversation,
- ConversationsBloc bloc,
- BuildContext context
- WidgetBuilder? loadingStateView,
- Widget? leadingView(
- BuildContext context,
- Conversation conversation
- Widget? titleView(
- BuildContext context,
- Conversation conversation
- String? controllerTag,
- OnLoad<
Conversation> ? onLoad, - OnEmpty? onEmpty,
- OnError? onError,
- String? customSoundForMessages,
- bool? disableSoundForMessages = false,
- Widget? submitIcon,
- DateTimeFormatterCallback? dateTimeFormatterCallback,
- ConversationsBloc? conversationsBloc,
- RouteObserver<
ModalRoute< ? routeObserver,void> > - bool? hideSearch,
- bool searchReadOnly = false,
- GestureTapCallback? onSearchTap,
- Widget? searchBoxIcon,
- EdgeInsetsGeometry? searchPadding,
- 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,
});