Event constructor

Event(
  1. AdHocType type, {
  2. AdHocDevice? device,
  3. Object? data,
})

Creates an Event object.

The event is determined by its type, which in turn indicates if this object has a payload data or a sender ad hoc device representation device.

Implementation

Event(this.type, {this.device, this.data});