writeTo method

  1. @override
void writeTo(
  1. StringSink out
)
override

Writes the node's HTML to out.

Implementation

@override
void writeTo(StringSink out) {
  out.write('<$tag');
  writeAttributes(out, attributes);
  out.write('>');
  if (voidTags.contains(tag)) {
    return;
  }
  for (final child in children) {
    child.writeTo(out);
  }
  out.write('</$tag>');
}