CometChatConversationsWithMessages class

CometChatConversationsWithMessages is a component that is composed of CometChatConversations and CometChatMessages component

it is a wrapper component which provides functionality to open the CometChatMessages module with a click of any conversation shown in the list of conversations.

    CometChatConversationsWithMessages(
      user: User(
          uid: 'superhero2',
          name: 'Captain America',
          avatar:
              'https://data-us.cometchat.io/assets/images/avatars/captainamerica.png',
          ),
      group: Group(
        guid: 'guid',
        name: 'group name',
        type: 'group type'
      ),
      conversationsConfiguration: ConversationsConfiguration(
          conversationsRequestBuilder: ConversationsRequestBuilder(),
          conversationsStyle: ConversationsStyle(),
          listItemStyle: ListItemStyle()),
      messageConfiguration: MessageConfiguration(
          messageHeaderConfiguration:
              MessageHeaderConfiguration(),
          messageListConfiguration:
              MessageListConfiguration(),
          messageComposerConfiguration:
              MessageComposerConfiguration(),
          detailsConfiguration:
              DetailsConfiguration(),
          messagesStyle: MessagesStyle()),
      theme: CometChatTheme(
          palette: Palette(),
          typography: Typography()),
    )
Inheritance

Constructors

CometChatConversationsWithMessages.new({Key? key, User? user, Group? group, CometChatTheme? theme, ConversationsConfiguration? conversationsConfiguration, MessageConfiguration? messageConfiguration, ContactsConfiguration? startConversationConfiguration})
const

Properties

conversationsConfiguration ConversationsConfiguration?
conversationsConfiguration CometChatConversation configurations
final
group Group?
group if null will return CometChatConversations screen else will navigate to CometChatMessages
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
messageConfiguration MessageConfiguration?
messageConfiguration CometChatMessage configurations
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startConversationConfiguration ContactsConfiguration?
startConversationConfiguration CometChatMessage start conversation configuration
final
theme CometChatTheme?
theme can pass custom theme
final
user User?
user if null will return CometChatConversations screen else will navigate to CometChatMessages
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<CometChatConversationsWithMessages>
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