MessageInformationConfiguration class
MessageInformationConfiguration is a data class that has configuration properties to customize the functionality and appearance of CometChatMessageInformation can be used by a component where CometChatConversationsWithMessages is a child component
Constructors
- MessageInformationConfiguration({String? title, Widget? closeIcon, MessageInformationStyle? messageInformationStyle, CometChatTheme? theme, VoidCallback? onClose, Widget bubbleView(BaseMessage, BuildContext context)?, Widget listItemView(BaseMessage message, MessageReceipt messageReceipt, BuildContext context)?, Widget subTitleView(BaseMessage message, MessageReceipt messageReceipt, BuildContext context)?, OnError? onError, String? receiptDatePattern, ListItemStyle? listItemStyle, Widget? readIcon, Widget? deliveredIcon, WidgetBuilder? loadingStateView, String? loadingIconUrl, String? errorStateText, WidgetBuilder? emptyStateView, String? emptyStateText, WidgetBuilder? errorStateView})
-
const
Properties
- bubbleView → Widget Function(BaseMessage, BuildContext context)?
-
bubbleView bubble view for parent message
final
- closeIcon → Widget?
-
to update Close Icon
final
- deliveredIcon → Widget?
-
delivered icon widget
final
- emptyStateText → String?
-
emptyStateText text to be displayed when the list is empty
final
- emptyStateView → WidgetBuilder?
-
emptyStateView returns view fow empty state
final
- errorStateText → String?
-
errorStateText text to be displayed when error occur
final
- errorStateView → WidgetBuilder?
-
errorStateView returns view fow error state
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- listItemStyle → ListItemStyle?
-
listItemStyle style for every list item
final
- listItemView → Widget Function(BaseMessage message, MessageReceipt messageReceipt, BuildContext context)?
-
listItemView list item view for parent message
final
- loadingIconUrl → String?
-
loadingIconUrl url to be displayed when loading
final
- loadingStateView → WidgetBuilder?
-
loadingStateView returns view fow loading state
final
- messageInformationStyle → MessageInformationStyle?
-
messageInformationStyle style parameter
final
- onClose → VoidCallback?
-
onClose call function to be called on close button click
final
- onError → OnError?
-
onError callback triggered in case any error happens when fetching groups
final
- readIcon → Widget?
-
read icon widget
final
- receiptDatePattern → String?
-
receiptDatePattern to format receipt date
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subTitleView → Widget Function(BaseMessage message, MessageReceipt messageReceipt, BuildContext context)?
-
sunTitleView
gives subtitle viewfinal - theme → CometChatTheme?
-
theme can pass custom theme
final
- title → String?
-
title to be shown at head
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited