writeAll method Null safety

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

See IOSink.writeAll from dart:io.

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);
  }
}