FeedPost constructor

FeedPost({
  1. required String id,
  2. required String tenantId,
  3. String? title,
  4. String? fromUserId,
  5. String? fromUserDisplayName,
  6. String? fromUserAvatar,
  7. String? fromIpHash,
  8. List<String> tags = const [],
  9. double? weight,
  10. Map<String, String> meta = const {},
  11. String? contentHTML,
  12. List<FeedPostMediaItem> media = const [],
  13. List<FeedPostLink> links = const [],
  14. required DateTime createdAt,
  15. Map<String, int> reacts = const {},
  16. int? commentCount,
})

Returns a new FeedPost instance.

Implementation

FeedPost({
  required this.id,
  required this.tenantId,
  this.title,
  this.fromUserId,
  this.fromUserDisplayName,
  this.fromUserAvatar,
  this.fromIpHash,
  this.tags = const [],
  this.weight,
  this.meta = const {},
  this.contentHTML,
  this.media = const [],
  this.links = const [],
  required this.createdAt,
  this.reacts = const {},
  this.commentCount,
});