InteractionEvent constructor

InteractionEvent({
  1. required String widgetId,
  2. required InteractionType type,
  3. dynamic value,
  4. DateTime? timestamp,
})

Constructor for creating a new interaction event

Implementation

InteractionEvent({
  required this.widgetId,
  required this.type,
  this.value,
  DateTime? timestamp,
}) : timestamp = timestamp ?? DateTime.now();