CommentController constructor

CommentController({
  1. required CommentService service,
  2. required CommentConfig config,
  3. required UserInfo user,
})

Creates a new CommentController.

All parameters are required:

  • service: The implementation of CommentService to use
  • config: Configuration for the comments module
  • user: Information about the current user

Implementation

CommentController({
  required this.service,
  required this.config,
  required this.user,
});