encodeResponseRecord method

  1. @override
Uint8List encodeResponseRecord()
override

Low level method for encoding this record into an mDNS packet.

Subclasses should provide the packet format of their encapsulated data into a Uint8List, which could then be used to write a pakcet to send as a response for this record type.

Implementation

@override
Uint8List encodeResponseRecord() {
  return Uint8List.fromList(utf8.encode(text));
}