Message<T extends DataObject> constructor

const Message<T extends DataObject>(
  1. Connection from,
  2. T data
)

A message received by the server. The data is guaranteed to be of type T.

Implementation

const Message(super.from, super.data);