yourWidget method
Implementation
@override
Widget yourWidget(BuildContext context, GridModel? value) {
var components = value!.bodyComponents!
.map((model) => Apis.apis()
.getRegistryApi()
.component(context, app, model.componentName!, model.componentId!))
.toList();
if (components.isNotEmpty) {
return GridViewHelper.container(context, components, value.gridView);
} else {
return AlertWidget(
app: app, title: 'Error', content: 'No components for this grid');
}
}