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