ReportEvent constructor

const ReportEvent({
  1. required String id,
  2. required BaseException exception,
  3. required Map<String, dynamic> context,
  4. required DateTime timestamp,
  5. List<String> fingerprints = const [],
  6. List<Breadcrumb> breadcrumbs = const [],
  7. List<Attachment> attachments = const [],
  8. bool handled = true,
  9. Map<String, dynamic>? payload,
})

Constructs an immutable report event with optional initial payload.

Implementation

const ReportEvent({
  required this.id,
  required this.exception,
  required this.context,
  required this.timestamp,
  this.fingerprints = const [],
  this.breadcrumbs = const [],
  this.attachments = const [],
  this.handled = true,
  Map<String, dynamic>? payload,
}) : _payload = payload;