InboxMessage constructor

InboxMessage({
  1. String id = "",
  2. String ownerId = "",
  3. String profileName = "",
  4. String profileImgUrl = "",
  5. String text = "",
  6. int createdTime = 0,
  7. int seenTime = 0,
  8. AppMediaType type = AppMediaType.text,
  9. String mediaUrl = "",
  10. String referenceId = "",
  11. int audioDuration = 0,
  12. List<String> likedProfiles = const [],
  13. bool isPinned = false,
  14. String pollId = "",
  15. Map<String, List<String>> reactions = const {},
  16. String threadParentId = "",
  17. int replyCount = 0,
  18. Map<String, dynamic>? pollData,
  19. String receivedMedia = "",
  20. Map<String, dynamic>? replyData,
  21. Map<String, dynamic>? locationData,
  22. Map<String, dynamic>? documentData,
  23. Map<String, dynamic>? contactData,
  24. String localFilePath = "",
  25. String deliveryStatus = "",
  26. int deliveredTime = 0,
  27. int editedTime = 0,
  28. bool isDeletedForEveryone = false,
  29. List<String> hiddenForProfileIds = const [],
  30. bool isForwarded = false,
  31. List<String> starredByProfileIds = const [],
  32. int hopCount = 0,
  33. double? distanceMeters,
})

Implementation

InboxMessage({
  this.id = "",
  this.ownerId = "",
  this.profileName = "",
  this.profileImgUrl = "",
  this.text = "",
  this.createdTime = 0,
  this.seenTime = 0,
  this.type = AppMediaType.text,
  this.mediaUrl = "",
  this.referenceId = "",
  this.audioDuration = 0,
  this.likedProfiles = const [],
  this.isPinned = false,
  this.pollId = "",
  this.reactions = const {},
  this.threadParentId = "",
  this.replyCount = 0,
  this.pollData,
  this.receivedMedia = "",
  this.replyData,
  this.locationData,
  this.documentData,
  this.contactData,
  this.localFilePath = "",
  this.deliveryStatus = "",
  this.deliveredTime = 0,
  this.editedTime = 0,
  this.isDeletedForEveryone = false,
  this.hiddenForProfileIds = const [],
  this.isForwarded = false,
  this.starredByProfileIds = const [],
  this.hopCount = 0,
  this.distanceMeters,
});