TrackEvent.error constructor

TrackEvent.error({
  1. required String siteId,
  2. required String? eventName,
  3. required Map<String, dynamic> errorProperties,
  4. String? pathname,
  5. String? hostname,
  6. String? pageTitle,
  7. String? referrer,
  8. String? userId,
  9. Map<String, String>? queryParams,
  10. String? language,
  11. int? screenWidth,
  12. int? screenHeight,
  13. String? userAgent,
  14. String? ipAddress,
})

Creates an error tracking event.

Used to track application errors with stack traces and context.

Implementation

TrackEvent.error({
  required this.siteId,
  required this.eventName,
  required Map<String, dynamic> errorProperties,
  this.pathname,
  this.hostname,
  this.pageTitle,
  this.referrer,
  this.userId,
  this.queryParams,
  this.language,
  this.screenWidth,
  this.screenHeight,
  this.userAgent,
  this.ipAddress,
}) : type = EventType.error,
     properties = errorProperties;