add method Null safety

void add(
  1. List<int> bytes,
  2. {bool? copy}
)

Implementation

void add(List<int> bytes, {bool? copy}) {
  _queue.add(castBytes(bytes, copy: copy ?? _copy));
  _queueCurrentLength += bytes.length;
  _queueTotalLength += bytes.length;
  if (_readAheadCompleter != null && remainingLength >= _readAheadRequired) {
    _readAheadCompleter!.complete();
    _readAheadCompleter = null;
  }
}