Sample constructor
Sample({
- required String keyExpr,
- required String payload,
- required Uint8List payloadBytes,
- required SampleKind kind,
- String? attachment,
- Uint8List? attachmentBytes,
- String? encoding,
- Uint8List? encodingBytes,
- Timestamp? timestamp,
- Priority priority = Priority.data,
- CongestionControl congestionControl = CongestionControl.drop,
- bool express = false,
- ZBytes? payloadZBytes,
Creates a Sample with the given fields.
Implementation
Sample({
required this.keyExpr,
required this.payload,
required this.payloadBytes,
required this.kind,
this.attachment,
this.attachmentBytes,
this.encoding,
this.encodingBytes,
this.timestamp,
this.priority = Priority.data,
this.congestionControl = CongestionControl.drop,
this.express = false,
this.payloadZBytes,
});