getIt static method
Widget
getIt(
- BuildContext context,
- AppModel app,
- DrawerType drawerType,
- DrawerModel appBarModel,
- double widgetWidth,
- 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,
),
);
}