comment method

void comment(
  1. Object text
)

Adds a XmlComment node with the provided text.

For example, to generate an XML comment <!--Hello World--> one would write:

builder.comment('Hello World');

Implementation

void comment(Object text) {
  _stack.last.children.add(XmlCommentSyntheticImpl(text.toString()));
}