CommentsSection constructor

const CommentsSection({
  1. Key? key,
  2. required List comments,
  3. required dynamic onCommentChange(
    1. String
    ),
  4. required Future<void> onSubmitComment(),
  5. required String commentContent,
  6. required dynamic onUpvoteComment(
    1. int
    ),
})

Implementation

const CommentsSection({
  Key? key,
  required this.comments,
  required this.onCommentChange,
  required this.onSubmitComment,
  required this.commentContent,
  required this.onUpvoteComment, // Add the onUpvoteComment callback
}) : super(key: key);