Event constructor

Event(
  1. EventID id, [
  2. dynamic data
])

Construct Event Data object with passed id and optional data with a Typed type

id events identification object data events data to be packed with this event. this is optional parameter becuase this event can be notification only or this event uses global variables for its consumption

Implementation

Event(this.id, [data]) : this.data = data;