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. int createdTime = 0,
  10. int modifiedTime = 0,
  11. Position? position,
  12. String location = '',
  13. List<String> likedProfiles = const [],
  14. List<String> sharedProfiles = const [],
  15. List<String> commentIds = const [],
  16. List<PostComment> comments = const [],
  17. List<String> hashtags = const [],
  18. List<String> mentionedProfiles = const [],
  19. bool isCommentEnabled = true,
  20. bool isPrivate = false,
  21. bool isDraft = false,
  22. bool isHidden = false,
  23. VerificationLevel? verificationLevel,
  24. String referenceId = '',
  25. String mediaOwner = '',
  26. int lastInteraction = 0,
  27. double aspectRatio = 1,
})

Implementation

Post({
  this.id = '',
  this.ownerId = '',
  this.profileName = '',
  this.profileImgUrl = '',
  this.caption = '',
  this.type = PostType.caption,
  this.mediaUrl = '',
  this.thumbnailUrl = '',
  this.createdTime = 0,
  this.modifiedTime = 0,
  this.position,
  this.location = '',
  this.likedProfiles = const [],
  this.sharedProfiles = 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,
});