getIt static method

Widget getIt(
  1. BuildContext context,
  2. AppModel app,
  3. MenuDefModel menuDefModel
)

Implementation

static Widget getIt(
  BuildContext context,
  AppModel app,
  MenuDefModel menuDefModel,
) {
  return BlocProvider<MenuDefCreateBloc>(
    create: (context) => MenuDefCreateBloc(
      app,
      menuDefModel,
    )..add(MenuDefCreateInitialiseEvent(menuDefModel)),
    child: MenuDefCreateWidget._(
      app: app,
    ),
  );
}