SentryAttachment.fromViewHierarchy constructor

SentryAttachment.fromViewHierarchy(
  1. SentryViewHierarchy sentryViewHierarchy
)

Implementation

SentryAttachment.fromViewHierarchy(SentryViewHierarchy sentryViewHierarchy)
    : this.fromLoader(
        loader: () => Uint8List.fromList(
            utf8JsonEncoder.convert(sentryViewHierarchy.toJson())),
        filename: 'view-hierarchy.json',
        contentType: 'application/json',
        attachmentType: SentryAttachment.typeViewHierarchy,
      );