MessageEnvelope constructor Null safety

MessageEnvelope(
  1. String? correlationId,
  2. String? messageType,
  3. dynamic message
)

Creates a new MessageEnvelope, which adds a correlation id, message id, and a type to the data being sent/received.

  • correlationId (optional) transaction id to trace execution through call chain.
  • messageType a string value that defines the message's type.
  • message the data being sent/received.