Post constructor
const
Post({
- required int id,
- required Author author,
- required bool authorIsModerator,
- required List<
CoinReward> coinRewards, - required String content,
- required int creationDate,
- required bool isHidden,
- required bool isOwnPost,
- required String status,
- required int updationDate,
- required int voteCount,
- required int voteStatus,
Implementation
const factory Post({
required int id,
required Author author,
required bool authorIsModerator,
required List<CoinReward> coinRewards,
required String content,
required int creationDate,
required bool isHidden,
required bool isOwnPost,
required String status,
required int updationDate,
required int voteCount,
required int voteStatus,
}) = _Post;