getIt static method

Widget getIt(
  1. BuildContext context,
  2. AppModel app,
  3. DrawerType drawerType,
  4. DrawerModel appBarModel,
  5. double widgetWidth,
  6. double widgetHeight,
)

Implementation

static Widget getIt(BuildContext context, AppModel app, DrawerType drawerType,
    DrawerModel appBarModel, double widgetWidth, double widgetHeight) {
  return BlocProvider<DrawerCreateBloc>(
    create: (context) => DrawerCreateBloc(
      app.documentID,
      drawerType,
      appBarModel,
    )..add(DrawerCreateEventValidateEvent(appBarModel)),
    child: DrawerCreateWidget._(
      app: app,
      widgetWidth: widgetWidth,
      widgetHeight: widgetHeight,
    ),
  );
}