build method
Builds a widget for the given content item.
content
: The content item to buildcontext
: The build context
If no layout is provided, uses the default layout.
Implementation
Widget build(BuildContext context, T content) {
var layout = content.getLayout();
if (layout == null) {
layout = defaultLayout;
VyuhBinding.instance.log
.debug('No layout found for ${content.schemaType}. Using default.');
}
return layout.build(context, content);
}