Event class

Implemented types
Implementers

Constructors

Event({String? id, String? event, String? data})
Event.message({String? id, String? data})

Properties

data String?
The payload of the event.
getter/setter pair
event String?
The name of the event. Return empty string if not required.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
An identifier that can be used to allow a client to replay missed Events by returning the Last-Event-Id header. Return empty string if not required.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compareTo(Event other) int
Compares this object to another object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited