PdfAttachment constructor

PdfAttachment(
  1. String fileName,
  2. List<int> data, {
  3. String? description,
  4. String? mimeType,
})

Initializes a new instance of the PdfAttachment class with specified file name and byte data to be attached.

Implementation

PdfAttachment(super.fileName, super.data,
    {String? description, String? mimeType}) {
  _embeddedFile =
      PdfEmbeddedFileSpecificationHelper.getHelper(this).embeddedFile;
  _updateValues(description, mimeType);
}