A combined byte and text output.
An IOSink combines a StreamSink of bytes with a StringSink, and allows easy output of both bytes and text.
Writing text (write) and adding bytes (add) may be interleaved freely.
While a stream is being added using addStream, any further attempts to add or write to the IOSink will fail until the addStream completes.
It is an error to add data to the IOSink after the sink is closed.
target StreamConsumer of bytes. [...]
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. [...]