RecentChatItem constructor

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

Implementation

const RecentChatItem(
    {Key? key,
    required this.item,
    required this.onTap,
    this.onLongPress,
    this.onAvatarClick,
    this.onchange,
    this.spanTxt = "",
    this.isSelected = false,
    this.isCheckBoxVisible = false,
    this.isChecked = false,
    this.isForwardMessage = false,
    this.typingUserid = "",
    this.archiveVisible = true,
    this.archiveEnabled = false,
    this.recentChatItemStyle = const RecentChatItemStyle()})
    : super(key: key);