getIt static method
Widget
getIt(
- BuildContext context,
- AppModel app,
- ModelsJsonConstructJsonEventToClipboardCreator modelsJsonConstructJsonEventToClipboardCreator,
- ModelsJsonConstructJsonEventToMemberMediumModelCreator modelsJsonConstructJsonEventToMemberMediumModelCreator,
- String initialBaseName,
Implementation
static Widget getIt(
BuildContext context,
AppModel app,
ModelsJsonConstructJsonEventToClipboardCreator
modelsJsonConstructJsonEventToClipboardCreator,
ModelsJsonConstructJsonEventToMemberMediumModelCreator
modelsJsonConstructJsonEventToMemberMediumModelCreator,
String initialBaseName) {
return BlocProvider<ModelsJsonBloc>(
create: (context) =>
ModelsJsonBloc(app)..add(ModelsJsonInitialiseEvent()),
child: ModelsJsonWidget._(
app: app,
modelsJsonConstructJsonEventToClipboardCreator:
modelsJsonConstructJsonEventToClipboardCreator,
modelsJsonConstructJsonEventToMemberMediumModelCreator:
modelsJsonConstructJsonEventToMemberMediumModelCreator,
initialBaseName: initialBaseName,
),
);
}