MercureEvent class

A class that allows building a MercureEvent from Server-Sent-Events.

Constructors

MercureEvent({required String id, required String data, required String type, required int retry})
A class that allows building a MercureEvent from Server-Sent-Events.
MercureEvent.raw(String raw)
A class that allows building a MercureEvent from Server-Sent-Events.
factory

Properties

data String
The SSE's event content
final
hashCode int
The hash code for this object.
no setterinherited
id String
The SSE's id property
final
retry int
The SSE's retry property (the reconnection time)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The SSE's event property (a specific event type)
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.
inherited