Describe the bug
If I use the emit function while using bloc, a warning occurs.
Expected behavior
In my opinion, bloc inherits cubit, emit should be used.
Am I using it incorrectly? I wonder if you don't want to use emit in bloc.
Screenshots
If applicable, add screenshots to help explain your problem.


Hi @ybin0823 馃憢
Thanks for opening an issue!
This is working as expected. emit should only ever be used within a Cubit. If you are extending Bloc you must override mapEventToState to yield new states.
Hope that helps 馃憤
Most helpful comment
Hi @ybin0823 馃憢
Thanks for opening an issue!
This is working as expected.
emitshould only ever be used within aCubit. If you are extendingBlocyou must overridemapEventToStatetoyieldnew states.Hope that helps 馃憤