getIt static method
Widget
getIt(
- BuildContext context,
- AppModel app,
- List<
WorkflowTaskModel> workflowTasks, - double widgetWidth,
Implementation
static Widget getIt(
BuildContext context,
AppModel app,
List<WorkflowTaskModel> workflowTasks,
double widgetWidth,
/*double widgetHeight
*/
) {
return BlocProvider<WorkflowTasksCreateBloc>(
create: (context) => WorkflowTasksCreateBloc(
app,
workflowTasks,
)..add(WorkflowTasksCreateInitialiseEvent(workflowTasks)),
child: WorkflowTasksCreateWidget._(
app: app,
widgetWidth: widgetWidth,
),
);
}