SseEvent class

Model representing a Server-Sent Event (SSE).

Constructors

SseEvent({String? id, String? event, required String data, int? retry})
Creates a new SseEvent. id The event ID. event The event type. data The event data. retry The retry time in milliseconds (optional).

Properties

data String
The event data.
final
event String?
The event type.
final
hashCode int
The hash code for this object.
no setteroverride
id String?
The event ID.
final
retry int?
The retry time in milliseconds (optional).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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