toContentElements method
List
toContentElements(
- dynamic rendered, {
- bool append = false,
- bool parseAttributes = true,
})
Implementation
List<dynamic> toContentElements(dynamic rendered,
{bool append = false, bool parseAttributes = true}) {
try {
var domContext = UIComponentDOMContext(this, domGenerator.domContext);
var list = _toContentElementsImpl(rendered, append, domContext);
if (parseAttributes) {
_parseAttributes(content!.children);
}
return list;
} catch (e, s) {
logger.error(
'Error converting rendered to content elements: $rendered', e, s);
return <dynamic>[];
}
}