Event constructor
Event(
- AdHocType type, {
- AdHocDevice? device,
- 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});