claude refactor
This commit is contained in:
@@ -14,8 +14,8 @@ class BlocModule<TBloc extends StateStreamableSource<TState>, TState> extends St
|
||||
@override
|
||||
Widget build(BuildContext context) => BlocProvider<TBloc>(
|
||||
create: (context) {
|
||||
var bloc = create(context);
|
||||
this.onInitialisation != null ? this.onInitialisation!(context, bloc) : null;
|
||||
final bloc = create(context);
|
||||
onInitialisation?.call(context, bloc);
|
||||
return bloc;
|
||||
},
|
||||
child: Builder(
|
||||
|
||||
Reference in New Issue
Block a user