getIt static method

Widget getIt(
  1. BuildContext context,
  2. MemberModel member,
  3. AppModel app,
  4. double widgetWidth,
  5. double widgetHeight,
)

Implementation

static Widget getIt(BuildContext context, MemberModel member, AppModel app,
    double widgetWidth, double widgetHeight) {
  return BlocProvider<FromJsonBloc>(
    create: (context) => FromJsonBloc(
      app,
      member,
    )..add(FromJsonInitialise()),
    child: NewFromJsonCreateWidget._(
      app: app,
      widgetWidth: widgetWidth,
      widgetHeight: widgetHeight,
    ),
  );
}