write method

void write(
  1. String s
)

Implementation

void write(String s) {
  for (var i = 0; i < depth; i++) {
    buf.write(' ');
  }
  buf.write(s);
}