comment method
Adds a XmlComment
node with the provided text
.
For example, to generate a comment with the text Hello World one would write:
builder.comment('Hello World');
Implementation
void comment(Object text) {
_stack.last.children.add(XmlComment(text.toString()));
}