DataMessage class

Constructors

DataMessage({String? topic, String? from, Map<String, dynamic>? head, DateTime? ts, int? seq, dynamic content, bool? noForwarding, int? hi})

Properties

content → dynamic
object, application-defined content exactly as published by the user in the {pub} message
final
from String?
id of the user who published the message; could be missing if the message was generated by the server
final
hashCode int
The hash code for this object.
no setterinherited
set of string key-value pairs, passed unchanged from {pub}, optional
final
hi int?
getter/setter pair
noForwarding bool?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seq int?
Server-issued sequential Id
getter/setter pair
topic String?
topic which distributed this message
final
ts DateTime?
Timestamp
final

Methods

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

Static Methods

fromMessage(Map<String, dynamic> msg) DataMessage