ArticleDetail constructor

ArticleDetail({
  1. bool showInList = false,
  2. String createTime = '',
  3. String authorId = '',
  4. int badCnt = 0,
  5. String latestCmtTime = '',
  6. int goodCnt = 0,
  7. int offerPoint = 0,
  8. String thumbnailURL = '',
  9. int stickRemains = 0,
  10. String timeAgo = '',
  11. String updateTimeStr = '',
  12. String authorName = '',
  13. ArticleType type = ArticleType.Normal,
  14. bool offered = false,
  15. String createTimeStr = '',
  16. int viewCnt = 0,
  17. String thumbnailURL20 = '',
  18. int watchCnt = 0,
  19. String previewContent = '',
  20. String titleEmoj = '',
  21. String titleEmojUnicode = '',
  22. String title = '',
  23. String thumbnailURL48 = '',
  24. int commentCnt = 0,
  25. int collectCnt = 0,
  26. String latestCmterName = '',
  27. String tags = '',
  28. String oId = '',
  29. String cmtTimeAgo = '',
  30. int stick = 0,
  31. List<ArticleTag> tagObjs = const [],
  32. String latestCmtTimeStr = '',
  33. bool anonymous = false,
  34. int thankCnt = 0,
  35. String updateTime = '',
  36. ArticleStatus status = ArticleStatus.Normal,
  37. int heat = 0,
  38. bool perfect = false,
  39. String thumbnailURL210 = '',
  40. String permalink = '',
  41. dynamic articleAuthor,
  42. int thankedCnt = 0,
  43. int anonymousView = 0,
  44. String viewCntFormat = '',
  45. bool commentable = false,
  46. bool rewarded = false,
  47. int rewardedCnt = 0,
  48. int rewardPoint = 0,
  49. bool isFollowing = false,
  50. bool isWatching = false,
  51. bool isMyArticle = false,
  52. bool thanked = false,
  53. int editorType = 0,
  54. String audioURL = '',
  55. String table = '',
  56. String content = '',
  57. String source = '',
  58. String img1URL = '',
  59. VoteStatus vote = VoteStatus.normal,
  60. double randomDouble = 0.0,
  61. String authorIntro = '',
  62. String city = '',
  63. String IP = '',
  64. String authorURL = '',
  65. int pushOrder = 0,
  66. String rewardContent = '',
  67. String redditScore = '',
  68. Pagination? pagination,
  69. bool commentViewable = false,
  70. int revisionCount = 0,
  71. List<ArticleComment> comments = const [],
  72. List<ArticleComment> niceComments = const [],
})

Implementation

ArticleDetail({
  this.showInList = false,
  this.createTime = '',
  this.authorId = '',
  this.badCnt = 0,
  this.latestCmtTime = '',
  this.goodCnt = 0,
  this.offerPoint = 0,
  this.thumbnailURL = '',
  this.stickRemains = 0,
  this.timeAgo = '',
  this.updateTimeStr = '',
  this.authorName = '',
  this.type = ArticleType.Normal,
  this.offered = false,
  this.createTimeStr = '',
  this.viewCnt = 0,
  this.thumbnailURL20 = '',
  this.watchCnt = 0,
  this.previewContent = '',
  this.titleEmoj = '',
  this.titleEmojUnicode = '',
  this.title = '',
  this.thumbnailURL48 = '',
  this.commentCnt = 0,
  this.collectCnt = 0,
  this.latestCmterName = '',
  this.tags = '',
  this.oId = '',
  this.cmtTimeAgo = '',
  this.stick = 0,
  this.tagObjs = const [],
  this.latestCmtTimeStr = '',
  this.anonymous = false,
  this.thankCnt = 0,
  this.updateTime = '',
  this.status = ArticleStatus.Normal,
  this.heat = 0,
  this.perfect = false,
  this.thumbnailURL210 = '',
  this.permalink = '',
  articleAuthor,
  this.thankedCnt = 0,
  this.anonymousView = 0,
  this.viewCntFormat = '',
  this.commentable = false,
  this.rewarded = false,
  this.rewardedCnt = 0,
  this.rewardPoint = 0,
  this.isFollowing = false,
  this.isWatching = false,
  this.isMyArticle = false,
  this.thanked = false,
  this.editorType = 0,
  this.audioURL = '',
  this.table = '',
  this.content = '',
  this.source = '',
  this.img1URL = '',
  this.vote = VoteStatus.normal,
  this.randomDouble = 0.0,
  this.authorIntro = '',
  this.city = '',
  this.IP = '',
  this.authorURL = '',
  this.pushOrder = 0,
  this.rewardContent = '',
  this.redditScore = '',
  this.pagination,
  this.commentViewable = false,
  this.revisionCount = 0,
  this.comments = const [],
  this.niceComments = const [],
}) {
  author = articleAuthor ?? ArticleAuthor();
}