CometChatMessageInformation class
CometChatMessageInformation is a widget that internally uses CometChatListBase to display message information.
CometChatMessageInformation(
parentMessage: BaseMessage(
receiverUid: 'receiverUid',
type: 'type',
receiverType: 'receiverType',
readAt: DateTime.now()),
loggedInUser: User(name: 'loggedInUser', uid: 'uid_of_loggedInUser'),
messageInformationStyle: MessageInformationStyle(),
);
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CometChatMessageInformation
Constructors
- CometChatMessageInformation({Key? key, required BaseMessage message, String? title, Widget? closeIcon, CometChatMessageTemplate? template, 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, String? emptyStateText, WidgetBuilder? emptyStateView, String? errorStateText, String? loadingIconUrl, WidgetBuilder? loadingStateView, 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
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- 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
- message → BaseMessage
-
message parent message for message information
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)?
-
subTitleView gives subtitle view
final
- template → CometChatMessageTemplate?
-
template to get the message template
final
- theme → CometChatTheme?
-
theme can pass custom theme
final
- title → String?
-
title to be shown at head
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< CometChatMessageInformation> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited