yourWidget method

  1. @override
Widget yourWidget(
  1. BuildContext context,
  2. GridModel? value
)
override

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');
  }
}