Comment constructor

Comment({
  1. required String id,
  2. required String noteId,
  3. String? parentCommentId,
  4. String? blockId,
  5. required String body,
  6. required DateTime createdAt,
  7. required DateTime updatedAt,
  8. required CommentAuthor author,
})

Returns a new Comment instance.

Implementation

Comment({
  required this.id,
  required this.noteId,
  this.parentCommentId,
  this.blockId,
  required this.body,
  required this.createdAt,
  required this.updatedAt,
  required this.author,
});