getIt static method

Widget getIt(
  1. BuildContext context,
  2. AppModel app,
  3. AppBarModel appBarModel,
  4. double widgetWidth,
  5. double widgetHeight,
)

Implementation

static Widget getIt(BuildContext context, AppModel app,
    AppBarModel appBarModel, double widgetWidth, double widgetHeight) {
  return BlocProvider<AppBarCreateBloc>(
    create: (context) => AppBarCreateBloc(
      app.documentID,
      appBarModel,
    )..add(AppBarCreateEventValidateEvent(appBarModel)),
    child: AppBarCreateWidget._(
      app: app,
      widgetWidth: widgetWidth,
      widgetHeight: widgetHeight,
    ),
  );
}