SentryAttachment.fromUint8List constructor

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

Creates an SentryAttachment from a Uint8List

Implementation

SentryAttachment.fromUint8List(
  Uint8List bytes,
  String fileName, {
  String? contentType,
  String? attachmentType,
  bool? addToTransactions,
}) : this.fromLoader(
        attachmentType: attachmentType,
        loader: () => bytes,
        filename: fileName,
        contentType: contentType,
        addToTransactions: addToTransactions,
      );