Comment constructor

Comment({
  1. required int id,
  2. required String content,
  3. required int postId,
  4. int? parentId,
  5. List<Comment> replies = const [],
  6. int likesCount = 0,
  7. required CommunityUser user,
  8. bool? isLikedByUser,
  9. required DateTime createdAt,
  10. required DateTime updatedAt,
})

Implementation

Comment({
  required this.id,
  required this.content,
  required this.postId,
  this.parentId,
  this.replies = const [],
  this.likesCount = 0,
  required this.user,
  this.isLikedByUser,
  required this.createdAt,
  required this.updatedAt,
});