Post constructor
Post({
- String id = '',
- String ownerId = '',
- String profileName = '',
- String profileImgUrl = '',
- String caption = '',
- PostType type = PostType.caption,
- String mediaUrl = '',
- String thumbnailUrl = '',
- int createdTime = 0,
- int modifiedTime = 0,
- Position? position,
- String location = '',
- List<
String> likedProfiles = const [], - List<
String> commentIds = const [], - List<
PostComment> comments = const [], - List<
String> hashtags = const [], - List<
String> mentionedProfiles = const [], - bool isCommentEnabled = true,
- bool isPrivate = false,
- bool isDraft = false,
- bool isHidden = false,
- VerificationLevel? verificationLevel,
- String referenceId = '',
- String mediaOwner = '',
- int lastInteraction = 0,
- 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,
});