MBAutomationEvent constructor

MBAutomationEvent({
  1. required String event,
  2. String? name,
  3. Map<String, dynamic>? metadata,
})

Initializes an event with the parameters passed. Timestamp is set with DateTime.now(). @param event The name of the event. @param name The name of the event. @param metadata Additional metadata for the event.

Implementation

MBAutomationEvent({
  required this.event,
  this.name,
  this.metadata,
})  : id = null,
      timestamp = DateTime.now();