PubSubMessage class

Represents a message published on a PubSub topic.

Constructors

PubSubMessage({required String topic, required String content, required String sender, Uint8List? data})
Creates a PubSub message.

Properties

content → String
The message content, decoded as UTF-8 with malformed bytes replaced.
final
data → Uint8List
The raw payload bytes as carried on the wire.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sender → String
The sender's peer ID.
final
topic → String
The topic this message was published to.
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