ContentDispositionHeader.from constructor
ContentDispositionHeader.from(})
Convenience method to create a Content-Disposition header
with the given disposition.
Implementation
ContentDispositionHeader.from(
this.disposition, {
this.filename,
this.creationDate,
this.modificationDate,
this.readDate,
this.size,
}) : super(disposition == ContentDisposition.inline
? 'inline'
: disposition == ContentDisposition.attachment
? 'attachment'
: 'unsupported') {
dispositionText = disposition.name;
}