Post constructor
const
Post({
- required int postId,
- required String author,
- required String permlink,
- required String category,
- required String title,
- required String body,
- required JsonMetadata jsonMetadata,
- required DateTime created,
- required DateTime updated,
- required int depth,
- required int children,
- required bool isPaidout,
- required DateTime payoutAt,
- required double payout,
- required String pendingPayoutValue,
- required String authorPayoutValue,
- required String curatorPayoutValue,
- required String promoted,
- required List<
String> replies, - int? bodyLength,
- double? authorReputation,
- required PostStats stats,
- String? parentAuthor,
- String? parentPermlink,
- required String url,
- String? rootTitle,
- required List<
Beneficiary> beneficiaries, - required String maxAcceptedPayout,
- required int percentHbd,
- required List<
ActiveVote> activeVotes, - required List<
String> blacklists, - String? community,
- String? communityTitle,
- String? authorRole,
- String? authorTitle,
Implementation
const Post({
required this.postId,
required this.author,
required this.permlink,
required this.category,
required this.title,
required this.body,
required this.jsonMetadata,
required this.created,
required this.updated,
required this.depth,
required this.children,
required this.netRshares,
required this.isPaidout,
required this.payoutAt,
required this.payout,
required this.pendingPayoutValue,
required this.authorPayoutValue,
required this.curatorPayoutValue,
required this.promoted,
required this.replies,
this.bodyLength,
this.authorReputation,
required this.stats,
this.parentAuthor,
this.parentPermlink,
required this.url,
this.rootTitle,
required this.beneficiaries,
required this.maxAcceptedPayout,
required this.percentHbd,
required this.activeVotes,
required this.blacklists,
this.community,
this.communityTitle,
this.authorRole,
this.authorTitle,
});