build method
Implementation
Widget build(BuildContext context, T content) {
var layout = content.getLayout();
if (layout == null) {
layout = defaultLayout;
vyuh.log
.debug('No layout found for ${content.schemaType}. Using default.');
}
try {
return layout.build(context, content);
} catch (e) {
return vyuh.widgetBuilder.errorView(context,
error: e,
title: 'Failed to build layout',
subtitle:
'Layout: "${layout.schemaType}" for Content: "${content.schemaType}"');
}
}