MailAttachment constructor

const MailAttachment({
  1. required String filename,
  2. String? path,
  3. List<int>? data,
  4. String? mimeType,
})

Implementation

const MailAttachment({
  required this.filename,
  this.path,
  this.data,
  this.mimeType,
}) : assert(
        path != null || data != null,
        'Either path or data must be provided',
      );