mdnsServiceType property
String
mdnsServiceType
Srv record of the dns
Implementation
String get mdnsServiceType {
final List<String> ptrNameSplit = ptrResourceRecord.name.split('.');
String tempString = '';
if (ptrNameSplit.isNotEmpty) {
tempString = ptrNameSplit[0];
}
if (ptrNameSplit.length >= 2) {
tempString = '$tempString.${ptrNameSplit[1]}';
}
return tempString;
}