getIt static method

Widget getIt(
  1. BuildContext context,
  2. AppModel app,
  3. ModelsJsonConstructJsonEventToClipboardCreator modelsJsonConstructJsonEventToClipboardCreator,
  4. ModelsJsonConstructJsonEventToMemberMediumModelCreator modelsJsonConstructJsonEventToMemberMediumModelCreator,
  5. 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,
    ),
  );
}