PublicCommentBase constructor

PublicCommentBase({
  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,
})

Returns a new PublicCommentBase instance.

Implementation

PublicCommentBase({
  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,
});