print() without a newline in Dart?
You can use stdout
:
import "dart:io";
stdout.write("foo");
will print foo
to the console but not place a \n
after it.
You can also use stderr
. See:
How can I print to stderr in Dart in a synchronous way?