add method

void add (List<int> bytes)
override

Adds chunked data to this sink.

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

Implementation

void add(List<int> bytes) {
  if (_isClosed) {
    throw new StateError("Can't add to a closed sink.");
  }

  _buffer.addAll(bytes);
}