CometChatListItem class
CometChatListItem is a top level container widget
used internally for displaying each item in components like CometChatUsers, CometChatGroups, CometChatConversations, CometChatGroupMembers
               CometChatListItem(
                   avatarName: _user.name,
                   avatarURL: _user.avatar,
                   title: _user.name,
                   statusIndicatorColor: backgroundColor,
                   statusIndicatorIcon: icon,
                 );
- Inheritance
 - 
    
- Object
 - DiagnosticableTree
 - Widget
 - StatelessWidget
 - CometChatListItem
 
 
Constructors
- 
          CometChatListItem({Key? key, Widget? chatAvatar({String? name, required bool online, Color? rimColor, double? size, required String url})?, Widget? chatConversationItem({required String avatarName, String? avatarUrl, bool? isGroupChat, String? lastAction, bool? online, String? subtitle, DateTime? time, required String title, int? unreadCount})?, int? unreadMessageCount, BaseMessage? lastMessage, String lastMessageText = '', String? avatarURL, String? avatarName, Color? statusIndicatorColor, Widget? statusIndicatorIcon, String? title, Widget? subtitleView, List<
CometChatOption> ? options, Widget? tailView, bool isGroupChat = false, bool? hideSeparator = true, AvatarStyle avatarStyle = const AvatarStyle(), bool? status, StatusIndicatorStyle statusIndicatorStyle = const StatusIndicatorStyle(), ListItemStyle style = const ListItemStyle(), CometChatTheme? theme, String? id}) - 
          
            const
 
Properties
- avatarName → String?
 - 
  avatarName sets name  to be shown in avatar if avatarURL is not available
  final
 - avatarStyle → AvatarStyle
 - 
  
  final
 - avatarURL → String?
 - 
  avatarURL sets image url to be shown in avatar
  final
 - chatAvatar → Widget? Function({String? name, required bool online, Color? rimColor, double? size, required String url})?
 - 
  chatAvatar
  final
 - chatConversationItem → Widget? Function({required String avatarName, String? avatarUrl, bool? isGroupChat, String? lastAction, bool? online, String? subtitle, DateTime? time, required String title, int? unreadCount})?
 - 
  chatConversationItem
  final
 - hashCode → int
 - 
  The hash code for this object.
  no setterinherited
 - hideSeparator → bool?
 - 
  hideSeparator toggle separator visibility
  final
 - id → String?
 - 
  id for list item
  final
 - isGroupChat → bool
 - 
  
  final
 - key → Key?
 - 
  Controls how one widget replaces another widget in the tree.
  finalinherited
 - lastMessage → BaseMessage?
 - 
  
  final
 - lastMessageText → String
 - 
  
  final
 - 
  options
  → List<
CometChatOption> ? - 
  options set options for
  final
 - runtimeType → Type
 - 
  A representation of the runtime type of the object.
  no setterinherited
 - status → bool?
 - 
  status
  final
 - statusIndicatorColor → Color?
 - 
  statusIndicatorColor toggle visibility for status indicator
  final
 - statusIndicatorIcon → Widget?
 - 
  statusIndicatorIcon sets status
  final
 - statusIndicatorStyle → StatusIndicatorStyle
 - 
  
  final
 - style → ListItemStyle
 - 
  style style for DataItem
  final
 - subtitleView → Widget?
 - 
  subtitleView gives subtitle view
  final
 - tailView → Widget?
 - 
  tailView sets tail
  final
 - theme → CometChatTheme?
 - 
  theme can pass custom theme class or dark theme defaultDarkTheme object from CometChatTheme class, by default light theme
  final
 - title → String?
 - 
  title sets title
  final
 - unreadMessageCount → int?
 - 
  
  final
 
Methods
- 
  build(
BuildContext context) → Widget  - 
  Describes the part of the user interface represented by this widget.
  override
 - 
  createElement(
) → StatelessElement  - 
  Creates a StatelessElement to manage this widget's location in the tree.
  inherited
 - 
  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