emit method

void emit(
  1. String str
)

Appends str to the output buffer.

Implementation

void emit(String str) {
  if (_prettyPrint) {
    if (_startOfLine) {
      _startOfLine = false;
      _buff.write(' ' * _indent);
    }
    _buff.write(str);
  } else {
    _buff.write(str);
  }
}