echo function

void echo(
  1. String text, {
  2. bool newline = false,
})

Writes text to stdout including a newline.

echo("Hello world", newline=false);

If newline is false then a newline will not be output.

newline defaults to false.

Implementation

void echo(String text, {bool newline = false}) =>
    _Echo().echo(text, newline: newline);