user | User? | User object for the user message list. |
group | Group? | Group object for the group message list. |
messagesRequestBuilder | MessagesRequestBuilder? | Custom request builder passed to CometChat’s SDK. |
style | CometChatMessageListStyle? | Sets style for the message list. |
scrollController | ScrollController? | Controller for the message list. |
emptyStateText | String? | Text to display when the list is empty. |
errorStateText | String? | Text to display when an error occurs. |
loadingStateView | WidgetBuilder? | View for the loading state. |
emptyStateView | WidgetBuilder? | View for the empty state. |
errorStateView | WidgetBuilder? | View for the error state behind the dialog. |
stateCallBack | Function(CometChatMessageListController controller)? | Access controller functions from the parent. |
disableSoundForMessages | bool? | Disables sound for sent/received messages. |
customSoundForMessages | String? | URL for the custom sound for outgoing messages. |
customSoundForMessagePackage | String? | Package name if the sound URL is from another package. |
readIcon | Widget? | Custom read icon for message receipt. |
deliveredIcon | Widget? | Custom delivered icon for message receipt. |
sentIcon | Widget? | Custom sent icon for message receipt. |
waitIcon | Widget? | Custom wait icon for message receipt. |
alignment | ChatAlignment | Chat alignment setting. |
avatarVisibility | bool? | Toggle visibility of avatars. |
datePattern | String Function(BaseMessage message)? | Custom date pattern visible in message receipts. |
hideTimestamp | bool? | Toggle visibility of timestamps. |
templates | List<CometChatMessageTemplate>? | Templates for the message list. |
onThreadRepliesClick | ThreadRepliesClick? | Callback for clicking on the thread indicator. |
headerView | Widget? Function(BuildContext, {User? user, Group? group, int? parentMessageId})? | Custom header view. |
footerView | Widget? Function(BuildContext, {User? user, Group? group, int? parentMessageId})? | Custom footer view. |
dateSeparatorPattern | String Function(DateTime)? | Pattern for the date separator. |
onError | OnError? | Callback triggered when an error occurs. |
receiptsVisibility | bool? | Controls visibility of read receipts. |
dateSeparatorStyle | CometChatDateStyle? | Style for the date separator. |
disableReactions | bool? | Toggle visibility of reactions. |
addReactionIcon | Widget? | Custom icon for adding a reaction. |
addMoreReactionTap | Function(BaseMessage message)? | Custom onTap for adding reactions. |
favoriteReactions | List<String>? | List of frequently used reactions. |
textFormatters | List<CometChatTextFormatter>? | List of text formatters for text messages. |
disableMentions | bool? | Disables formatting of mentions. |
padding | EdgeInsetsGeometry? | Sets padding for the message list. |
margin | EdgeInsetsGeometry? | Sets margin for the message list. |
width | double? | Sets the width of the message list. |
height | double? | Sets the height of the message list. |
reactionsRequestBuilder | ReactionsRequestBuilder? | Fetches reactions for a specific message. |
onLoad | OnLoad<BaseMessage>? | Callback triggered when the list is loaded. |
onEmpty | OnEmpty? | Callback triggered when the list is empty. |
onReactionClick | Function(String? emoji, BaseMessage message)? | Custom action for clicking on a reaction pill. |
onReactionLongPress | Function(String? emoji, BaseMessage message)? | Custom action for long pressing on a reaction pill. |
onReactionListItemClick | Function(String? reaction, BaseMessage? message)? | Custom action for clicking on a reaction list item. |
hideStickyDate | bool? | Hide the date separator. |
hideReplyInThreadOption | bool? | Hide the “Reply in Thread” option. |
hideTranslateMessageOption | bool? | Hide the “Translate Message” option. |
hideEditMessageOption | bool? | Hide the “Edit Message” option. |
hideDeleteMessageOption | bool? | Hide the “Delete Message” option. |
hideReactionOption | bool? | Hide the “Reaction” option. |
hideMessagePrivatelyOption | bool? | Hide the “Message Privately” option. |
hideCopyMessageOption | bool? | Hide the “Copy Message” option. |
hideMessageInfoOption | bool? | Hide the “Message Info” option. |
hideGroupActionMessages | bool? | Hide group action messages. |
enableConversationStarters | bool? | Enables conversation starters in new conversations. |
enableSmartReplies | bool? | Enables smart replies in the chat. |
hideShareMessageOption | bool? | Hide the “Share Message” option. |
smartRepliesDelayDuration | int? | Delay in milliseconds before triggering Smart Replies. |
smartRepliesKeywords | List<String>? | Keywords that trigger Smart Replies. |
addTemplate | List<CometChatMessageTemplate>? | Add custom message templates to the existing templates. |