# writeChars method

1. @override

Future<void> writeChars(

1. List<int> buf, [
2. int off = 0,
3. int? len

])
override

Writes a portion of a character array to the buffer.

This method writes `len` characters from the array `buf` starting at index `off`. If the buffer becomes full during writing, it will be automatically flushed.

## Implementation

    @override
    Future<void> writeChars(List<int> buf, [int off = 0, int? len]) async {
      len ??= buf.length - off;
      for (int i = 0; i < len; i++) {
        await writeChar(buf[off + i]);
      }
    }