CommentBloc constructor

CommentBloc({
  1. required GetAllCommentsUseCase getAllCommentsUseCase,
  2. required CreateCommentUseCase createCommentUseCase,
})

Implementation

CommentBloc(
    {required this.getAllCommentsUseCase, required this.createCommentUseCase})
    : super(CommentInitial()) {
  on<FetchCommentsEvent>(_onFetchCommentsEvent);
  on<CreateCommentEvent>(_onCreateCommentEvent);
}