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