CometChatListItem constructor
const
CometChatListItem({
- Key? key,
- String? avatarURL,
- String? avatarName,
- Color? statusIndicatorColor,
- Widget? statusIndicatorIcon,
- String? title,
- Widget? subtitleView,
- List<
CometChatOption> ? options, - Widget? tailView,
- bool? hideSeparator = true,
- AvatarStyle avatarStyle = const AvatarStyle(),
- StatusIndicatorStyle statusIndicatorStyle = const StatusIndicatorStyle(),
- ListItemStyle style = const ListItemStyle(),
- CometChatTheme? theme,
- String? id,
Implementation
const CometChatListItem({
super.key,
this.avatarURL,
this.avatarName,
this.statusIndicatorColor,
this.statusIndicatorIcon,
this.title,
this.subtitleView,
this.options,
this.tailView,
this.hideSeparator = true,
this.avatarStyle = const AvatarStyle(),
this.statusIndicatorStyle = const StatusIndicatorStyle(),
this.style = const ListItemStyle(),
this.theme,
this.id,
}) : assert(avatarURL != null || avatarName != null);