Content constructor

const Content({
  1. required int id,
  2. required String author,
  3. required String permlink,
  4. required String category,
  5. required String title,
  6. required String body,
  7. int depth = 0,
  8. required JsonMetadata jsonMetadata,
  9. required DateTime created,
  10. required DateTime? updated,
  11. required int numChildren,
  12. required int netRshares,
  13. required double authorReputation,
  14. required PostStats stats,
  15. required String url,
  16. required List<Beneficiary> beneficiaries,
  17. required String maxAcceptedPayout,
  18. required Map<String, int> upvotes,
  19. required Map<String, int> downvotes,
  20. String? community = '',
  21. String? communityTitle = '',
  22. required int tribePendingToken,
  23. required int tribePrecision,
  24. required String tribeToken,
  25. required bool tribeIsMuted,
  26. required double tribeScoreHot,
  27. required double tribeScorePromoted,
  28. required double tribeScoreTrend,
  29. required int tribeTotalPayoutValue,
  30. required int tribeTotalVoteWeight,
  31. required int tribeVoteRshares,
  32. required Map<String, double> tribeUpvotes,
  33. required Map<String, double> tribeDownvotes,
})

Implementation

const Content({
  required this.id,
  required this.author,
  required this.permlink,
  required this.category,
  required this.title,
  required this.body,
  this.depth = 0,
  required this.jsonMetadata,
  required this.created,
  required this.updated,
  required this.numChildren,
  required this.netRshares,
  required this.authorReputation,
  required this.stats,
  required this.url,
  required this.beneficiaries,
  required this.maxAcceptedPayout,
  required this.upvotes,
  required this.downvotes,
  this.community = '',
  this.communityTitle = '',
  required this.tribePendingToken,
  required this.tribePrecision,
  required this.tribeToken,
  required this.tribeIsMuted,
  required this.tribeScoreHot,
  required this.tribeScorePromoted,
  required this.tribeScoreTrend,
  required this.tribeTotalPayoutValue,
  required this.tribeTotalVoteWeight,
  required this.tribeVoteRshares,
  required this.tribeUpvotes,
  required this.tribeDownvotes,
});