PeamanFeed constructor

PeamanFeed({
  1. String? id,
  2. String? ownerId,
  3. PeamanFeedType type = PeamanFeedType.text,
  4. String? caption,
  5. List<PeamanFileUrl> files = const <PeamanFileUrl>[],
  6. int reactionsCount = 0,
  7. int commentsCount = 0,
  8. int repliesCount = 0,
  9. int savesCount = 0,
  10. int sharesCount = 0,
  11. int viewsCount = 0,
  12. bool featured = false,
  13. List<String> searchKeys = const [],
  14. int? createdAt,
  15. int? updatedAt,
  16. bool visibility = true,
  17. Map<String, dynamic> extraData = const <String, dynamic>{},
})

Implementation

PeamanFeed({
  this.id,
  this.ownerId,
  this.type = PeamanFeedType.text,
  this.caption,
  this.files = const <PeamanFileUrl>[],
  this.reactionsCount = 0,
  this.commentsCount = 0,
  this.repliesCount = 0,
  this.savesCount = 0,
  this.sharesCount = 0,
  this.viewsCount = 0,
  this.featured = false,
  this.searchKeys = const [],
  this.createdAt,
  this.updatedAt,
  this.visibility = true,
  this.extraData = const <String, dynamic>{},
});