attachment method Null safety

ContentDispositionHeader attachment(
  1. {String? filename,
  2. DateTime? creationDate,
  3. DateTime? modificationDate,
  4. DateTime? readDate,
  5. int? size}
)

Convenuience method to create a Content-Disposition: attachment header

Implementation

static ContentDispositionHeader attachment(
        {String? filename,
        DateTime? creationDate,
        DateTime? modificationDate,
        DateTime? readDate,
        int? size}) =>
    from(ContentDisposition.attachment,
        filename: filename,
        creationDate: creationDate,
        modificationDate: modificationDate,
        readDate: readDate,
        size: size);