SentryAttachment.fromIntList constructor

SentryAttachment.fromIntList(
  1. List<int> bytes,
  2. String fileName, {
  3. String? contentType,
  4. String? attachmentType,
  5. bool? addToTransactions,
})

Creates an SentryAttachment from a List<int>

Implementation

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