SerialEvent constructor
SerialEvent(
- SerialEventType type,
- dynamic data
Creates a SerialEvent with the given type and optional data.
Implementation
SerialEvent(this.type, this.data);