writeAll method

void writeAll(
  1. Iterable<Object?> objects, [
  2. String separator = ''
])

See StringSink.writeAll.

Implementation

void writeAll(Iterable<Object?> objects, [String separator = '']) {
  var first = true;
  for (var object in objects) {
    if (first) {
      first = false;
    } else {
      write(separator);
    }

    write(object);
  }
}