BrokerMessage class

One message, as a consumer sees it.

Constructors

BrokerMessage({required String topic, required String id, required String payload, Map<String, String> headers = const {}})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
Metadata carried alongside the body.
final
id String
The broker's identifier for this delivery.
final
json Object?
The payload decoded as JSON.
no setter
payload String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
topic String
The topic or queue it arrived on.
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