toContentElements method

List toContentElements(
  1. dynamic rendered, {
  2. bool append = false,
  3. 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>[];
  }
}