Skip to content

bloc

0.1.0statebloc

Blocs and cubits in a Bloc tab: each one's current state and recent events.

Installdevpul add bloc
WiringDevpulBloc.install();
TabYes
devpul>=1.0.0-dev.1 <2.0.0
Requiresbloc ^9.1.0
Sourcehttps://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.