Event constructor

Event(
  1. String eventName,
  2. [Object? eventData,
  3. Object? sender]
)

Default constructor for the Event class. eventName - the name of the event, used to identify the event. eventData - The data associated with the event. sender - Identifier to identify who is sending the event.

Implementation

Event(this.eventName, [this.eventData, this.sender]);