Element.withTag constructor

Element.withTag(
  1. String tag
)

Instantiates a tag Element with no children.

Implementation

Element.withTag(this.tag)
    : children = [],
      attributes = {};