mainWidget method
The primary screen content.
Called when no error page state is active. state is the current
ScreenManagerCubitState and can be inspected if needed, but most
implementations can ignore it.
Implementation
@override
Widget mainWidget(BuildContext context, ScreenManagerCubitState state) {
return BlocProvider.value(
value: bloc,
child: BlocConsumer<BlocxFormBloc<F, P, E>, BlocxFormState<F, E>>(
builder: _blocBuilder,
buildWhen: (_, c) => c.shouldRebuild,
listener: blocListener,
listenWhen: (_, c) => c.shouldListen,
),
);
}