Sample class
A sample received from a subscriber.
Contains the key expression, payload, kind, and optional attachment extracted from a zenoh sample notification.
Constructors
Properties
- attachment → String?
-
Optional attachment metadata as a UTF-8 string, decoded leniently.
final
- attachmentBytes → Uint8List?
-
The raw attachment bytes, or null if no attachment was present.
final
- encoding → String?
-
The encoding of the payload as a MIME type string, or null if unknown.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- keyExpr → String
-
The key expression the sample was published on.
final
- kind → SampleKind
-
The kind of sample (put or delete).
final
- payload → String
-
The payload as a UTF-8 string, decoded leniently.
final
- payloadBytes → Uint8List
-
The raw payload bytes.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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