CometChatGroupsWithMessages class

CometChatGroupsWithMessages is a component that uses CometChatGroups to display a list of groups and allows to access the CometChatMessages component for each group

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

Usage


CometChatGroupWithMessages(
     groupsConfiguration: GroupsConfiguration(),
     messageConfiguration: MessageConfiguration(),
     createGroupConfiguration: CreateGroupConfiguration(),
     joinProtectedGroupConfiguration: JoinProtectedGroupConfiguration()
     theme: CometChatTheme(palette: Palette(),typography: Typography.fromDefault()),
 );
Inheritance

Constructors

CometChatGroupsWithMessages({Key? key, Group? group, CometChatTheme? theme, GroupsConfiguration groupsConfiguration = const GroupsConfiguration(), MessageConfiguration messageConfiguration = const MessageConfiguration(), JoinProtectedGroupConfiguration? joinProtectedGroupConfiguration, CreateGroupConfiguration createGroupConfiguration = const CreateGroupConfiguration(), Widget? createGroupIcon, dynamic onCreateGroupIconClick(BuildContext context)?})
const

Properties

createGroupConfiguration CreateGroupConfiguration
createGroupConfiguration set properties for create group screen
final
createGroupIcon Widget?
createGroupIcon create group icon
final
group Group?
group if null will return CometChatGroups screen else will navigate to CometChatMessages
final
groupsConfiguration GroupsConfiguration
groupsConfiguration parameter used to set Group's configuration properties
final
hashCode int
The hash code for this object.
no setterinherited
joinProtectedGroupConfiguration JoinProtectedGroupConfiguration?
joinProtectedGroupConfiguration sets configuration for CometChatJoinProtectedGroup
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
messageConfiguration MessageConfiguration
messageConfiguration parameter used to set message's configuration properties
final
onCreateGroupIconClick → dynamic Function(BuildContext context)?
onCreateGroupIconClick on create group icon click
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
theme CometChatTheme?
theme parameter used to pass custom theme to this module
final

Methods

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