builder method

  1. @override
Widget builder(
  1. BuildContext context
)
override

Implementation

@override
Widget builder(BuildContext context) {
  return StateUtils.instance.subscribeNotifierWidget<M>(model, (context, model) {
    return Container(
      alignment: model.isEmptyData ? Alignment.center : null,
      padding: backgroundImage.isEmptyString ? padding : null,
      decoration: BoxDecoration(
        color: backgroundColor,
        borderRadius: borderRadius,
      ),
      child: _contentWidget(context),
    );
  });
}