tryAddCrashReport method

void tryAddCrashReport(
  1. Future<void>? crashReport
)

Adds a crash report to the event stream.

Implementation

void tryAddCrashReport(Future<void>? crashReport) {
  if (crashReport != null) {
    if (Loglytics._combineEvents) {
      _combinedEvents.add(crashReport);
    } else {
      _crashReports.add(crashReport);
    }
  }
}