SerialEvent constructor

SerialEvent(
  1. SerialEventType type,
  2. dynamic data
)

Creates a SerialEvent with the given type and optional data.

Implementation

SerialEvent(this.type, this.data);