CometChatThreadedMessages class

CometChatThreadedMessages is a widget that internally uses CometChatListBase, CometChatMessageList and CometChatMessageComposer to display and create messages with respect to a certain parent message

  CometChatThreadedMessages(
     parentMessage: BaseMessage(
         receiverUid: 'receiverUid',
         type: 'type',
         receiverType: 'receiverType',
         readAt: DateTime.now()),
     loggedInUser: User(name: 'loggedInUser', uid: 'uid_of_loggedInUser'),
     threadedMessagesStyle: ThreadedMessageStyle(),
     );
Inheritance

Constructors

CometChatThreadedMessages({Key? key, required BaseMessage parentMessage, String? title, Widget? closeIcon, dynamic messageActionView(BaseMessage message, BuildContext context)?, MessageComposerConfiguration? messageComposerConfiguration, MessageListConfiguration? messageListConfiguration, ThreadedMessageStyle? threadedMessagesStyle, bool? hideMessageComposer, Widget bubbleView(BaseMessage, BuildContext context)?, required User loggedInUser, CometChatTheme? theme, GlobalKey<State<StatefulWidget>>? messageComposerKey, Widget messageComposerView(User? user, Group? group, BuildContext context, BaseMessage parentMessage)?, Widget messageListView(User? user, Group? group, BuildContext context, BaseMessage parentMessage)?})
const

Properties

bubbleView → Widget Function(BaseMessage, BuildContext context)?
bubbleView bubble view for parent message
final
closeIcon → Widget?
to update Close Icon
final
hashCode → int
The hash code for this object.
no setterinherited
hideMessageComposer → bool?
hideMessageComposer toggle visibility for message composer
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loggedInUser → User
loggedInUser get logged in user
final
messageActionView → dynamic Function(BaseMessage message, BuildContext context)?
messageActionView custom action view
final
messageComposerConfiguration → MessageComposerConfiguration?
messageComposerConfiguration configuration class for CometChatMessageComposer
final
messageComposerKey → GlobalKey<State<StatefulWidget>>?
messageComposerKey key for message composer, We use this to get the dimensions of the composer which we then use to set the placeholder for the composer in stack we are using to show the message list
final
messageComposerView → Widget Function(User? user, Group? group, BuildContext context, BaseMessage parentMessage)?
messageComposerView to set custom message composer
final
messageListConfiguration → MessageListConfiguration?
messageListConfiguration configuration class for CometChatMessageList
final
messageListView → Widget Function(User? user, Group? group, BuildContext context, BaseMessage parentMessage)?
messageListView to set custom message list
final
parentMessage → BaseMessage
parentMessage parent message for thread
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
theme → CometChatTheme?
theme can pass custom theme
final
threadedMessagesStyle → ThreadedMessageStyle?
threadedMessagesStyle style parameter
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<CometChatThreadedMessages>
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, int wrapWidth = 65}) → 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