RecentChatItem constructor

RecentChatItem({
  1. Key? key,
  2. required RecentChatData item,
  3. required dynamic onTap(),
  4. dynamic onLongPress()?,
  5. dynamic onAvatarClick()?,
  6. dynamic onchange(
    1. bool? value
    )?,
  7. String spanTxt = Constants.emptyString,
  8. bool isSelected = false,
  9. bool isCheckBoxVisible = false,
  10. bool isChecked = false,
  11. bool isForwardMessage = false,
  12. String typingUserid = Constants.emptyString,
  13. bool archiveVisible = true,
  14. bool archiveEnabled = false,
  15. bool showChatDeliveryIndicator = true,
})

Implementation

RecentChatItem({
  super.key,
  required this.item,
  required this.onTap,
  this.onLongPress,
  this.onAvatarClick,
  this.onchange,
  this.spanTxt = Constants.emptyString,
  this.isSelected = false,
  this.isCheckBoxVisible = false,
  this.isChecked = false,
  this.isForwardMessage = false,
  this.typingUserid = Constants.emptyString,
  this.archiveVisible = true,
  this.archiveEnabled = false,
  this.showChatDeliveryIndicator = true,
});