writeCharCode method

  1. @override
void writeCharCode(
  1. int charCode
)
override

Writes a string containing the character with code point charCode.

Equivalent to write(String.fromCharCode(charCode)).

Implementation

@override
void writeCharCode(int charCode) {
  if (!isOpen && isBuffered) {
    throw closed();
  } else if (!isBuffered) {
    add([charCode]);
  } else {
    buffer!.addByte(charCode);
  }
}