Post constructor

const Post({
  1. required int id,
  2. required Author author,
  3. required bool authorIsModerator,
  4. required List<CoinReward> coinRewards,
  5. required String content,
  6. required int creationDate,
  7. required bool isHidden,
  8. required bool isOwnPost,
  9. required String status,
  10. required int updationDate,
  11. required int voteCount,
  12. 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;