getIt static method

Widget getIt(
  1. BuildContext context,
  2. AppModel app,
  3. DialogModel dialogModel,
  4. bool create,
  5. 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,
    ),
  );
}