bloc
Blocs and cubits in a Bloc tab: each one's current state and recent events.
| Install | devpul add bloc |
| Wiring | DevpulBloc.install(); |
| Tab | Yes |
| devpul | >=1.0.0-dev.1 <2.0.0 |
| Requires | bloc ^9.1.0 |
| Source | https://github.com/ictsolved/devpul plugins/bloc |
A Bloc tab for DevPul: every bloc and cubit with its current state and recent events. Each create, event, change and close is also an event (bloc.*), and bloc errors show in Errors.
devpul add bloc
import 'devpul/plugins.dart';
void main() {
DevpulPlugins.install();
DevpulBloc.install();
runApp(const App());
}
DevpulBloc.install() sets Bloc.observer and passes every callback on to the observer that was set before, so call it after setting your own. It does nothing unless Devpul.included.
Needs bloc 9.1 or later.