stream method

  1. @override
Stream<Uint8List> stream({
  1. int chunkSize = 16 * 1024,
})

Streams bytes in chunks.

This is the primary lazy read path for downstream integrators that want to preserve streaming behavior.

Implementation

@override
Stream<Uint8List> stream({int chunkSize = 16 * 1024}) {
  if (chunkSize <= 0) {
    throw ArgumentError.value(chunkSize, 'chunkSize', 'Must be > 0');
  }

  return _host.stream(chunkSize: chunkSize);
}