PublicComment constructor
PublicComment({
- required String id,
- String? userId,
- required String commenterName,
- String? commenterLink,
- required String commentHTML,
- String? parentId,
- required DateTime? date,
- int? votes,
- int? votesUp,
- int? votesDown,
- required bool verified,
- String? avatarSrc,
- bool? hasImages,
- bool? isByAdmin,
- bool? isByModerator,
- bool? isPinned,
- bool? isLocked,
- String? displayLabel,
- double? rating,
- List<
CommentUserBadgeInfo> ? badges = const [], - int? viewCount,
- bool? isDeleted,
- bool? isDeletedUser,
- bool? isSpam,
- String? anonUserId,
- List<
String> feedbackIds = const [], - bool? requiresVerification,
- String? editKey,
- bool? approved,
- bool? isUnread,
- String? myVoteId,
- bool? isVotedDown,
- bool? isVotedUp,
- bool? hasChildren,
- int? nestedChildrenCount,
- int? childCount,
- List<
PublicComment> children = const [], - bool? isFlagged,
- 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,
});