SSEResponse constructor

const SSEResponse(
  1. String id,
  2. String event,
  3. String comment,
  4. dynamic data,
  5. String rawResponse,
)

Constructs an SSEResponse instance.

id is the ID of the SSE event. event is the type of the SSE event. comment is the comment associated with the SSE event. data is the data payload of the SSE event. rawResponse is the raw response string of the SSE event.

Implementation

const SSEResponse(
    this.id, this.event, this.comment, this.data, this.rawResponse);