TrackEvent.error constructor
TrackEvent.error({
- required String siteId,
- required String? eventName,
- required Map<
String, dynamic> errorProperties, - String? pathname,
- String? hostname,
- String? pageTitle,
- String? referrer,
- String? userId,
- Map<
String, String> ? queryParams, - String? language,
- int? screenWidth,
- int? screenHeight,
- String? userAgent,
- 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;