getIt static method
Widget
getIt(
- BuildContext context,
- MemberModel member,
- AppModel app,
- double widgetWidth,
- double widgetHeight,
Implementation
static Widget getIt(BuildContext context, MemberModel member, AppModel app,
double widgetWidth, double widgetHeight) {
var accessBloc = BlocProvider.of<AccessBloc>(context);
return BlocProvider<WizardBloc>(
create: (context) => WizardBloc(
app,
accessBloc,
)..add(WizardInitialise(member)),
child: WizardWidget._(
app: app,
widgetWidth: widgetWidth,
widgetHeight: widgetHeight,
),
);
}