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