writeAsciiString method Null safety

void writeAsciiString(
  1. String input,
  2. {int bytes = 0,
  3. int bits = 0}
)

Writes an ASCII string to the stream of length bytes and bits

Implementation

void writeAsciiString(String input, {int bytes = 0, int bits = 0}) {
  writeBytes(Uint8List.fromList(input.codeUnits), bytes: bytes, bits: bits);
}