Flutter BLoC multiple BLoCs same widget

Posted by Pinki | Updated on

Flutter BLoC multiple BLoCs same widget. I assumed you are using the flutter_bloc library. Let the QuestionBloc listen to the QuestionValidatorBloc using StreamSubscription:

Now you just have to pass the QuestionValidatorBloc to the QuestionBloc constructor.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers