Post constructor

Post({
  1. String id = '',
  2. String ownerId = '',
  3. String profileName = '',
  4. String profileImgUrl = '',
  5. String caption = '',
  6. PostType type = PostType.caption,
  7. String mediaUrl = '',
  8. String thumbnailUrl = '',
  9. String externalUrl = '',
  10. int createdTime = 0,
  11. int modifiedTime = 0,
  12. Position? position,
  13. String location = '',
  14. List<String> likedProfiles = const [],
  15. List<String> sharedProfiles = const [],
  16. List<String> savedByProfiles = const [],
  17. List<String> commentIds = const [],
  18. List<PostComment> comments = const [],
  19. List<String> hashtags = const [],
  20. List<String> mentionedProfiles = const [],
  21. bool isCommentEnabled = true,
  22. bool isPrivate = false,
  23. bool isDraft = false,
  24. bool isHidden = false,
  25. VerificationLevel? verificationLevel,
  26. String referenceId = '',
  27. String mediaOwner = '',
  28. int lastInteraction = 0,
  29. double aspectRatio = 1,
  30. String textStyleId = '',
  31. String? originalPostId,
  32. String? originalOwnerId,
  33. int? scheduledTime,
  34. bool isScheduled = false,
  35. bool isEdited = false,
  36. String slug = '',
})

Implementation

Post({
  this.id = '',
  this.ownerId = '',
  this.profileName = '',
  this.profileImgUrl = '',
  this.caption = '',
  this.type = PostType.caption,
  this.mediaUrl = '',
  this.thumbnailUrl = '',
  this.externalUrl = '',
  this.createdTime = 0,
  this.modifiedTime = 0,
  this.position,
  this.location = '',
  this.likedProfiles = const [],
  this.sharedProfiles = const [],
  this.savedByProfiles = const [],
  this.commentIds = const [],
  this.comments = const [],
  this.hashtags = const [],
  this.mentionedProfiles = const [],
  this.isCommentEnabled = true,
  this.isPrivate = false,
  this.isDraft = false,
  this.isHidden = false,
  this.verificationLevel,
  this.referenceId = '',
  this.mediaOwner = '',
  this.lastInteraction = 0,
  this.aspectRatio = 1,
  this.textStyleId = '',
  this.originalPostId,
  this.originalOwnerId,
  this.scheduledTime,
  this.isScheduled = false,
  this.isEdited = false,
  this.slug = '',
});