DownloadableFile constructor

DownloadableFile(
  1. ContentType contentType,
  2. Stream<List<int>> stream,
  3. String filename, {
  4. int? length,
})

Implementation

DownloadableFile(
  this.contentType,
  this.stream,
  String filename, {
  this.length,
}) {
  contentDisposition = 'attachment; filename="$filename"';
}