ByteStreamResponse constructor

ByteStreamResponse(
  1. Stream<List<int>> _dataStream,
  2. int? length, {
  3. int statusCode = 200,
  4. String contentType = 'application/octet-stream',
  5. String? fileName,
  6. ContentDisposition disposition = ContentDisposition.inline,
})

Implementation

ByteStreamResponse(
  this._dataStream,
  this.length, {
  int statusCode = 200,
  this.contentType = 'application/octet-stream',
  this.fileName,
  this.disposition = ContentDisposition.inline,
}) : super(statusCode);