writeChar method
Writes a single character to the buffer.
The character to be written is contained in the 16 low-order bits of the given integer value; the 16 high-order bits are ignored.
Implementation
@override
Future<void> writeChar(int c) async {
if (_position >= _buffer.length) {
await flush();
}
_buffer[_position++] = c & 0xFFFF;
}