SentryAttachment.fromLoader constructor

SentryAttachment.fromLoader({
  1. required ContentLoader loader,
  2. required String filename,
  3. String? attachmentType,
  4. String? contentType,
  5. bool? addToTransactions,
})

Implementation

SentryAttachment.fromLoader({
  required ContentLoader loader,
  required this.filename,
  String? attachmentType,
  this.contentType,
  bool? addToTransactions,
})  : _loader = loader,
      attachmentType = attachmentType ?? typeAttachmentDefault,
      addToTransactions = addToTransactions ?? false;