MessageEvent class final

Represents a message that came across the SSE stream.

Implemented types

Constructors

MessageEvent(String type, String data, String? id)
Creates the message with the provided values.
const

Properties

data → String
The data sent in the message.
final
hashCode → int
The hash code for this object.
no setteroverride
id → String?
An optional message id that was provided.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → String
The type of the message.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override