getIt static method

Widget getIt(
  1. BuildContext context,
  2. AppModel app,
  3. List<WorkflowTaskModel> workflowTasks,
  4. 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,
    ),
  );
}