writeString method

void writeString(
  1. String value
)

Implementation

void writeString(String value) {
  final list = utf8.encode(value);
  writeUint32(list.length);
  write(list);
}