writeString method

void writeString(
  1. String text
)

This is a helper function, for send text to the output. It will encode your supplied text in utf8.

For byte data use output.add(data).

Implementation

void writeString(String text) => output.add(utf8.encode(text));