build method
Build the widget
Implementation
@override
Widget build(BuildContext context) {
Widget widget = view(context);
if (field.header != null || field.footer != null) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if (field.header != null) ...[
field.header!,
Spacing.vertical(getHeaderSpacing())
],
widget,
if (field.footer != null) ...[
field.footer!,
Spacing.vertical(getFooterSpacing())
],
],
);
}
return widget;
}