ConversationsConfiguration constructor
const
ConversationsConfiguration({
- ConversationsRequestBuilder? conversationsRequestBuilder,
- ConversationTypes conversationType = ConversationTypes.both,
- Widget? chatAvatar({})?,
- Widget? chatConversationItem({})?,
- Widget? subtitleView()?,
- String? title,
- bool showBackButton = true,
- Widget? backButton,
- bool hideStartConversation = false,
- Icon? startConversationIcon,
- CometChatTheme? theme,
- Widget? tailView()?,
- bool? hideSeparator,
- Widget listItemView()?,
- ConversationsStyle? conversationsStyle,
- List<
CometChatOption> ? options(- Conversation,
- CometChatConversationsController controller,
- BuildContext context
- SelectionMode? selectionMode,
- dynamic onSelection()?,
- String? emptyStateText,
- String? errorStateText,
- WidgetBuilder? loadingStateText,
- WidgetBuilder? emptyStateView,
- WidgetBuilder? errorStateView,
- dynamic stateCallBack(
- CometChatConversationsController controller
- ListItemStyle? listItemStyle,
- AvatarStyle? avatarStyle,
- StatusIndicatorStyle? statusIndicatorStyle,
- ReceiptStyle? receiptStyle,
- bool? disableUsersPresence,
- bool? disableReceipt,
- bool? hideReceipt,
- Widget? protectedGroupIcon,
- Widget? privateGroupIcon,
- Widget? readIcon,
- Widget? deliveredIcon,
- Widget? sentIcon,
- String datePattern(
- Conversation conversation
- String? typingIndicatorText,
- DateStyle? dateStyle,
- BadgeStyle? badgeStyle,
- String? customSoundForMessages,
- bool? disableSoundForMessages,
- ConversationsBuilderProtocol? conversationsProtocol,
- bool? hideError,
- List<
Widget> ? appBarOptions, - ActivateSelection? activateSelection,
- ScrollController? controller,
- OnError? onError,
- VoidCallback? onBack,
- dynamic onItemTap()?,
- dynamic onItemLongPress()?,
- bool? disableTyping,
- ConfirmDialogStyle? deleteConversationDialogStyle,
- bool? hideAppbar,
- bool? disableMentions,
- 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});