Stdout represents the IOSink for either stdout
or stderr
.
It provides a blocking IOSink
, so using this to write will block until
the output is written.
In some situations this blocking behavior is undesirable as it does not
provide the same non-blocking behavior as dart:io in general exposes.
Use the property nonBlocking to get an IOSink
which has the non-blocking
behavior.
This class can also be used to check whether stdout
or stderr
is
connected to a terminal and query some terminal properties.
The addError API is inherited from StreamSink and calling it will result in an unhandled asynchronous error unless there is an error handler on done.
IOSink
.
data
to the target consumer, ignoring encoding. [...]
stream
to this
. [...]
obj
to a String by invoking Object.toString and
adds the encoding of the result to the target consumer. [...]
objects
and writes them in sequence. [...]
charCode
. [...]
obj
to a String by invoking Object.toString and
writes the result to this
, followed by a newline. [...]