writeText method

void writeText()

Implementation

void writeText() {
  if (pos == start) {
    return;
  }
  final text = source.substring(start, pos);
  _tree.add(Text(text));
  start = pos;
}