CometChatListItem constructor
const
CometChatListItem({
- Key? key,
- Widget? chatAvatar({})?,
- Widget? chatConversationItem({})?,
- 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,
Implementation
const CometChatListItem({
super.key,
this.chatAvatar,
this.chatConversationItem,
this.unreadMessageCount,
this.lastMessage,
this.lastMessageText = '',
this.avatarURL,
this.avatarName,
this.statusIndicatorColor,
this.statusIndicatorIcon,
this.title,
this.subtitleView,
this.options,
this.tailView,
this.isGroupChat = false,
this.hideSeparator = true,
this.avatarStyle = const AvatarStyle(),
this.status,
this.statusIndicatorStyle = const StatusIndicatorStyle(),
this.style = const ListItemStyle(),
this.theme,
this.id,
}) : assert(avatarURL != null || avatarName != null);