elementClose function

Element elementClose(
  1. String tagname
)

Signifies the end of the element opened with elementOpen, corresponding to a closing tag (e.g.

in HTML). Any childNodes of the currently open Element that are in the DOM that have not been encountered in the current render pass are removed by the call to [elementClose].

The tagname is name of the tag, e.g. 'div' or 'span'. This could also be the tag of a custom element.

Returns the corresponding DOM Element.

Implementation

Element elementClose(String tagname) => _incDom.callMethod('elementClose', <Object>[tagname]) as Element;