write function Null safety

void write(
  1. String string
)

Writes string to the console without adding a newline.

Line may not be printed until a newline is added. Always add an empty \n or writeln call after all write calls. May not work properly in debug builds, for use in release mode.

Implementation

void write(String string) {
  ip.write(string);
}