print method

void print(
  1. String part, [
  2. bool newLine = false
])

Implementation

void print(String part, [bool newLine = false]) {
  if (part.isNotEmpty) {
    _currentLine.parts.add(part);
  }
  if (newLine) {
    _lines.add(_EmittedLine(_indent));
    _outputPos = 0;
  } else {
    _outputPos += part.length;
  }
}