write method Null safety

void write(
  1. Object? object
)

See IOSink.write from dart:io.

Implementation

void write(Object? object) {
  var string = object.toString();
  if (string.isEmpty) return;
  add(encoding.encode(string));
}