ReaderRender constructor

ReaderRender({
  1. required String contentType,
  2. int? contentLength,
  3. required Stream<List<int>> reader,
  4. Map<String, String>? headers,
})

Constructs a ReaderRender with the given parameters.

The contentType parameter is required and specifies the MIME type of the content. The reader parameter is also required and provides the stream of bytes to be rendered. The contentLength and headers parameters are optional.

Implementation

ReaderRender({
  required this.contentType,
  this.contentLength,
  required this.reader,
  this.headers,
});