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.

Properties

data String
The SSE's event content
latefinal
hashCode int
The hash code for this object.
no setterinherited
id String
The SSE's id property
latefinal
retry int
The SSE's retry property (the reconnection time)
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The SSE's event property (a specific event type)
latefinal

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