PostCommentComponentBloc constructor
PostCommentComponentBloc({
- PostCommentRepository? postCommentRepository,
Implementation
PostCommentComponentBloc({this.postCommentRepository})
: super(PostCommentComponentUninitialized()) {
on<FetchPostCommentComponent>((event, emit) {
_mapLoadPostCommentComponentUpdateToState(event.id!);
});
on<PostCommentComponentUpdated>((event, emit) {
emit(PostCommentComponentLoaded(value: event.value));
});
}