CustomEvent constructor

CustomEvent({
  1. required String eventName,
  2. required String sessionId,
  3. Map<String, dynamic> parameters = const {},
  4. String category = 'custom',
  5. String? description,
  6. int? value,
  7. DateTime? timestamp,
})

Implementation

CustomEvent({required this.eventName, required super.sessionId, this.parameters = const {}, this.category = 'custom', this.description, this.value, DateTime? timestamp})
  : super(eventId: LogEvent.generateEventId(), timestamp: timestamp ?? DateTime.now(), type: LogEventType.customEvent);