visitText method

  1. @override
void visitText (
  1. XmlText node
)
override

Visit an XmlText node.

Implementation

@override
void visitText(XmlText node) {
  // If text is purely whitespace, don't output to the buffer
  // the indentation and newlines will be handled elsewhere.
  if (node.text.trim().isNotEmpty) {
    super.visitText(node);
  }
}