getIt static method
Widget
getIt(
- BuildContext context,
- AppModel app,
- VoidCallback? callOnAction,
- WorkflowModel appBarModel,
- bool create,
- double widgetWidth,
Implementation
static Widget getIt(
BuildContext context,
AppModel app,
VoidCallback? callOnAction,
WorkflowModel appBarModel,
bool create,
double widgetWidth,
) {
return BlocProvider<WorkflowCreateBloc>(
create: (context) =>
WorkflowCreateBloc(app.documentID, appBarModel, callOnAction)
..add(WorkflowCreateEventValidateEvent(appBarModel)),
child: WorkflowCreateWidget._(
app: app,
create: create,
widgetWidth: widgetWidth,
),
);
}