getIt static method
Widget
getIt(
- BuildContext context,
- AppModel app,
- DialogModel dialogModel,
- bool create,
- double widgetWidth,
Implementation
static Widget getIt(
BuildContext context,
AppModel app,
DialogModel dialogModel,
bool create,
double widgetWidth,
) {
return BlocProvider<DialogCreateBloc>(
create: (context) => DialogCreateBloc(
app.documentID,
dialogModel,
)..add(DialogCreateEventValidateEvent(dialogModel)),
child: DialogCreateWidget._(
app: app,
create: create,
widgetWidth: widgetWidth,
),
);
}