@@ -11,7 +11,8 @@ import 'package:flutter_bloc/flutter_bloc.dart';
1111/// child: SomeWidget(),
1212/// )
1313/// ```dart
14- abstract class BlocfulWidget <BLOC extends BlocPresentationMixin <STATE , EVENT >, STATE , EVENT > extends StatelessWidget {
14+ abstract class BlocfulWidget <BLOC extends BlocPresentationMixin <STATE , EVENT >,
15+ STATE , EVENT > extends StatelessWidget {
1516 /// Creates a [BlocfulWidget]
1617 const BlocfulWidget ({this .onCreateBloc, super .key});
1718
@@ -27,17 +28,21 @@ abstract class BlocfulWidget<BLOC extends BlocPresentationMixin<STATE, EVENT>, S
2728 listener: onPresentationEvent,
2829 child: BlocConsumer <BLOC , STATE >(
2930 listenWhen: (previous, current) => previous != current,
30- listener: (context, state) => listener (context, context.read <BLOC >(), state),
31- builder: (context, state) => builder (context, context.read <BLOC >(), state),
31+ listener: (context, state) =>
32+ listener (context, context.read <BLOC >(), state),
33+ builder: (context, state) =>
34+ builder (context, context.read <BLOC >(), state),
3235 ),
3336 ),
3437 )
3538 : BlocPresentationListener <BLOC , EVENT >(
3639 listener: onPresentationEvent,
3740 child: BlocConsumer <BLOC , STATE >(
3841 listenWhen: (previous, current) => previous != current,
39- listener: (context, state) => listener (context, context.read <BLOC >(), state),
40- builder: (context, state) => builder (context, context.read <BLOC >(), state),
42+ listener: (context, state) =>
43+ listener (context, context.read <BLOC >(), state),
44+ builder: (context, state) =>
45+ builder (context, context.read <BLOC >(), state),
4146 ),
4247 );
4348 }
0 commit comments