CommentDTO constructor

CommentDTO({
  1. String? id,
  2. required String? postId,
  3. required String commentedBy,
  4. required String userId,
  5. required String userDispalyName,
  6. String? userImgUrl = "",
  7. String? tagTo,
  8. required DateTime commentedDate,
  9. required String comment,
  10. required List<String> commentImgUrl,
  11. required List<CommentLike> commentLikeCounts,
  12. required List<SubCommentDTO> replies,
  13. required List<LikedUser> likesUsers,
})

Implementation

CommentDTO({
  this.id,
  required this.postId,
  required this.commentedBy,
  required this.userId,
  required this.userDispalyName,
  this.userImgUrl="",
  this.tagTo,
  required this.commentedDate,
  required this.comment,
  required this.commentImgUrl,
  required this.commentLikeCounts,
  required this.replies,
  required this.likesUsers
});