CometChatUsersWithMessages class

CometChatUsersWithMessages is a component that uses CometChatUsers to display a list of users and allows to access the CometChatMessages component for each user

it list down users according to different parameter set in order of recent activity and opens message by default on click

      CometChatUsersWithMessages(
          user: User(
              uid: 'superhero2',
              name: 'Captain America',
              avatar:
                  'https://data-us.cometchat.io/assets/images/avatars/captainamerica.png',
              ),
              usersConfiguration: UsersConfiguration(
              usersProtocol: UsersBuilderProtocol()
              usersRequestBuilder: UsersRequestBuilder(),
              usersStyle: UsersStyle(),
              listItemStyle: ListItemStyle()),
          messageConfiguration: MessageConfiguration(
              messageHeaderConfiguration:
                  MessageHeaderConfiguration(),
              messageListConfiguration:
                  MessageListConfiguration(),
              messageComposerConfiguration:
                  MessageComposerConfiguration(),
              detailsConfiguration:
                  DetailsConfiguration(),
              messagesStyle: MessagesStyle()),
          theme: CometChatTheme(
              palette: Palette(),
              typography: Typography()),
        )

Inheritance

Constructors

CometChatUsersWithMessages({Key? key, CometChatTheme? theme, UsersConfiguration? usersConfiguration = const UsersConfiguration(), MessageConfiguration? messageConfiguration = const MessageConfiguration(), User? user})
const

Properties

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
theme CometChatTheme?
theme can pass custom theme
final
user User?
user if null will return CometChatUsers screen else will navigate to CometChatMessages
final
usersConfiguration UsersConfiguration?
usersConfiguration CometChatUsers configurations
final

Methods

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