Content constructor
const
Content({
- required int id,
- required String author,
- required String permlink,
- required String category,
- required String title,
- required String body,
- int depth = 0,
- required JsonMetadata jsonMetadata,
- required DateTime created,
- required DateTime? updated,
- required int numChildren,
- required double authorReputation,
- required PostStats stats,
- required String url,
- required List<
Beneficiary> beneficiaries, - required String maxAcceptedPayout,
- required Map<
String, int> upvotes, - required Map<
String, int> downvotes, - String? community = '',
- String? communityTitle = '',
- required int tribePendingToken,
- required int tribePrecision,
- required String tribeToken,
- required bool tribeIsMuted,
- required double tribeScoreHot,
- required double tribeScorePromoted,
- required double tribeScoreTrend,
- required int tribeTotalPayoutValue,
- required int tribeTotalVoteWeight,
- required Map<
String, double> tribeUpvotes, - 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,
});