SentryAttachment.fromByteData constructor

SentryAttachment.fromByteData(
  1. ByteData bytes,
  2. String fileName, {
  3. String? contentType,
  4. String? attachmentType,
  5. bool? addToTransactions,
})

Creates an SentryAttachment from ByteData

Implementation

SentryAttachment.fromByteData(
  ByteData bytes,
  String fileName, {
  String? contentType,
  String? attachmentType,
  bool? addToTransactions,
}) : this.fromLoader(
        attachmentType: attachmentType,
        loader: () => bytes.buffer.asUint8List(),
        filename: fileName,
        contentType: contentType,
        addToTransactions: addToTransactions,
      );