# ThreadMessage constructor

ThreadMessage(

1. SendPort replyPort,
2. dynamic data

)

Wrapper message passed to the Isolate's entry point function.

Contains a SendPort for replying and an optional data payload.

This message is automatically constructed by Thread.start().

Example usage:

    void entry(ThreadMessage message) {
      final reply = message.replyPort;
      final input = message.data;
      // process...
      reply.send('done');
    }

## Implementation

    ThreadMessage(this.replyPort, this.data);