Attachment constructor

Attachment(
  1. String fileUrl,
  2. String fileName,
  3. String fileExtension,
  4. String fileMimeType,
  5. int? fileSize,
)

Constructs a new Attachment instance.

It requires a fileUrl, fileName, fileExtension, fileMimeType, and optionally a fileSize.

Implementation

Attachment(
  this.fileUrl,
  this.fileName,
  this.fileExtension,
  this.fileMimeType,
  this.fileSize,
);