PubSubComment constructor

PubSubComment({
  1. required String id,
  2. required String tenantId,
  3. String? userId,
  4. required String urlId,
  5. required String commenterName,
  6. String? commenterLink,
  7. required String commentHTML,
  8. required String comment,
  9. String? parentId,
  10. int? votes,
  11. int? votesUp,
  12. int? votesDown,
  13. required bool verified,
  14. String? avatarSrc,
  15. bool? hasImages,
  16. bool? hasLinks,
  17. bool? isByAdmin,
  18. bool? isByModerator,
  19. bool? isPinned,
  20. bool? isLocked,
  21. String? displayLabel,
  22. double? rating,
  23. List<CommentUserBadgeInfo>? badges = const [],
  24. int? viewCount,
  25. bool? isDeleted,
  26. bool? isDeletedUser,
  27. bool? isSpam,
  28. String? anonUserId,
  29. List<String> feedbackIds = const [],
  30. int? flagCount,
  31. String? domain,
  32. required String url,
  33. String? pageTitle,
  34. DateTime? expireAt,
  35. bool? reviewed,
  36. bool? hasCode,
  37. required bool approved,
  38. required String? locale,
  39. bool? isBannedUser,
  40. List<String>? groupIds = const [],
  41. bool? isLive,
  42. bool? hidden,
  43. required String date,
})

Returns a new PubSubComment instance.

Implementation

PubSubComment({
  required this.id,
  required this.tenantId,
  this.userId,
  required this.urlId,
  required this.commenterName,
  this.commenterLink,
  required this.commentHTML,
  required this.comment,
  this.parentId,
  this.votes,
  this.votesUp,
  this.votesDown,
  required this.verified,
  this.avatarSrc,
  this.hasImages,
  this.hasLinks,
  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.flagCount,
  this.domain,
  required this.url,
  this.pageTitle,
  this.expireAt,
  this.reviewed,
  this.hasCode,
  required this.approved,
  required this.locale,
  this.isBannedUser,
  this.groupIds = const [],
  this.isLive,
  this.hidden,
  required this.date,
});