add method

void add(
  1. List<int> bytes
)

Appends bytes to the builder, growing the buffer if necessary.

bytes The byte data to append to the builder

Implementation

void add(List<int> bytes) {
  _ensureCanAdd(bytes.length);
  _buffer.setAll(_usedLength, bytes);
  _usedLength += bytes.length;
}