EventRequest constructor

EventRequest({
  1. required String installId,
  2. required String eventName,
  3. required Map<String, dynamic> eventData,
  4. DateTime? timestamp,
  5. String sdkName = SdkInfo.name,
  6. String sdkVersion = SdkInfo.version,
  7. String? attributedLinkId,
  8. String? attributedClickId,
  9. String? linkOpenedAt,
  10. String? sessionId,
})

Creates an event request

Implementation

EventRequest({
  required this.installId,
  required this.eventName,
  required this.eventData,
  DateTime? timestamp,
  this.sdkName = SdkInfo.name,
  this.sdkVersion = SdkInfo.version,
  this.attributedLinkId,
  this.attributedClickId,
  this.linkOpenedAt,
  this.sessionId,
}) : timestamp = (timestamp ?? DateTime.now()).toIso8601String();