PublicComment constructor

PublicComment({
  1. required String id,
  2. String? userId,
  3. required String commenterName,
  4. String? commenterLink,
  5. required String commentHTML,
  6. String? parentId,
  7. required DateTime? date,
  8. int? votes,
  9. int? votesUp,
  10. int? votesDown,
  11. required bool verified,
  12. String? avatarSrc,
  13. bool? hasImages,
  14. bool? isByAdmin,
  15. bool? isByModerator,
  16. bool? isPinned,
  17. bool? isLocked,
  18. String? displayLabel,
  19. double? rating,
  20. List<CommentUserBadgeInfo>? badges = const [],
  21. int? viewCount,
  22. bool? isDeleted,
  23. bool? isDeletedUser,
  24. bool? isSpam,
  25. String? anonUserId,
  26. List<String> feedbackIds = const [],
  27. bool? requiresVerification,
  28. String? editKey,
  29. bool? approved,
  30. bool? isUnread,
  31. String? myVoteId,
  32. bool? isVotedDown,
  33. bool? isVotedUp,
  34. bool? hasChildren,
  35. int? nestedChildrenCount,
  36. int? childCount,
  37. List<PublicComment> children = const [],
  38. bool? isFlagged,
  39. bool? isBlocked,
})

Returns a new PublicComment instance.

Implementation

PublicComment({
  required this.id,
  this.userId,
  required this.commenterName,
  this.commenterLink,
  required this.commentHTML,
  this.parentId,
  required this.date,
  this.votes,
  this.votesUp,
  this.votesDown,
  required this.verified,
  this.avatarSrc,
  this.hasImages,
  this.isByAdmin,
  this.isByModerator,
  this.isPinned,
  this.isLocked,
  this.displayLabel,
  this.rating,
  this.badges = const [],
  this.viewCount,
  this.isDeleted,
  this.isDeletedUser,
  this.isSpam,
  this.anonUserId,
  this.feedbackIds = const [],
  this.requiresVerification,
  this.editKey,
  this.approved,
  this.isUnread,
  this.myVoteId,
  this.isVotedDown,
  this.isVotedUp,
  this.hasChildren,
  this.nestedChildrenCount,
  this.childCount,
  this.children = const [],
  this.isFlagged,
  this.isBlocked,
});