SentryEvent constructor

SentryEvent({
  1. SentryId? eventId,
  2. DateTime? timestamp,
  3. Map<String, String>? modules,
  4. Map<String, String>? tags,
  5. Map<String, dynamic>? extra,
  6. List<String>? fingerprint,
  7. List<Breadcrumb>? breadcrumbs,
  8. SdkVersion? sdk,
  9. String? platform,
  10. String? logger,
  11. String? serverName,
  12. String? release,
  13. String? dist,
  14. String? environment,
  15. SentryMessage? message,
  16. String? transaction,
  17. dynamic throwable,
  18. SentryStackTrace? stackTrace,
  19. SentryException? exception,
  20. SentryLevel? level,
  21. String? culprit,
  22. SentryUser? user,
  23. Contexts? contexts,
  24. SentryRequest? request,
  25. DebugMeta? debugMeta,
})

Creates an event.

Implementation

SentryEvent({
  SentryId? eventId,
  DateTime? timestamp,
  Map<String, String>? modules,
  Map<String, String>? tags,
  Map<String, dynamic>? extra,
  List<String>? fingerprint,
  List<Breadcrumb>? breadcrumbs,
  this.sdk,
  this.platform,
  this.logger,
  this.serverName,
  this.release,
  this.dist,
  this.environment,
  this.message,
  this.transaction,
  dynamic throwable,
  this.stackTrace,
  this.exception,
  this.level,
  this.culprit,
  this.user,
  Contexts? contexts,
  this.request,
  this.debugMeta,
})  : eventId = eventId ?? SentryId.newId(),
      timestamp = timestamp ?? getUtcDateTime(),
      contexts = contexts ?? Contexts(),
      modules = modules != null ? Map.from(modules) : null,
      tags = tags != null ? Map.from(tags) : null,
      extra = extra != null ? Map.from(extra) : null,
      fingerprint = fingerprint != null ? List.from(fingerprint) : null,
      breadcrumbs = breadcrumbs != null ? List.from(breadcrumbs) : null,
      _throwable = throwable;