Comment constructor

const Comment({
  1. required String id,
  2. required String postId,
  3. required String ownerId,
  4. String? parentCommentId,
  5. required String text,
  6. required DateTime createdAt,
  7. DateTime? updatedAt,
  8. bool isDeleted = false,
  9. int reactionCount = 0,
  10. String? myReaction,
})

Implementation

const Comment({
  required this.id,
  required this.postId,
  required this.ownerId,
  this.parentCommentId,
  required this.text,
  required this.createdAt,
  this.updatedAt,
  this.isDeleted = false,
  this.reactionCount = 0,
  this.myReaction,
});