CometChatListItem constructor

const CometChatListItem({
  1. Key? key,
  2. String? avatarURL,
  3. String? avatarName,
  4. Color? statusIndicatorColor,
  5. Widget? statusIndicatorIcon,
  6. String? title,
  7. Widget? subtitleView,
  8. List<CometChatOption>? options,
  9. Widget? tailView,
  10. bool? hideSeparator = true,
  11. AvatarStyle avatarStyle = const AvatarStyle(),
  12. StatusIndicatorStyle statusIndicatorStyle = const StatusIndicatorStyle(),
  13. ListItemStyle style = const ListItemStyle(),
  14. CometChatTheme? theme,
  15. 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);