add method

  1. @override
void add(
  1. List<int> chunk
)
override

Adds chunked data to this sink.

This method is also used when converters are used as StreamTransformers.

Implementation

@override
void add(List<int> chunk) {
  _buffer.addAll(chunk);
  _length += chunk.length;
}