BufferedWriter constructor
Creates a new buffered writer with the provided capacity
.
The capacity
is the size of the buffer in bytes. If the buffer is full,
it will be flushed to the underlying writer. The default capacity is 8kb
(8192 bytes) but may be adjusted to suit the expected workload.
Implementation
BufferedWriter(
this._writer, {
int capacity = 8 * 1024,
}) : _buffer = Uint8List(capacity);