addClientReport method

void addClientReport(
  1. ClientReport? clientReport
)

Add an envelope item containing client report data.

Implementation

void addClientReport(ClientReport? clientReport) {
  if (clientReport != null) {
    final envelopeItem = SentryEnvelopeItem.fromClientReport(clientReport);
    items.add(envelopeItem);
  }
}