[flutter_tools] iOS fallback discovery protocol (#49735)

diff --git a/packages/flutter_tools/lib/src/mdns_discovery.dart b/packages/flutter_tools/lib/src/mdns_discovery.dart
index 4609e69..ae36d80 100644
--- a/packages/flutter_tools/lib/src/mdns_discovery.dart
+++ b/packages/flutter_tools/lib/src/mdns_discovery.dart
@@ -63,15 +63,14 @@
           )
           .toList();
       if (pointerRecords.isEmpty) {
-        globals. printTrace('No pointer records found.');
+        globals.printTrace('No pointer records found.');
         return null;
       }
       // We have no guarantee that we won't get multiple hits from the same
       // service on this.
-      final List<String> uniqueDomainNames = pointerRecords
+      final Set<String> uniqueDomainNames = pointerRecords
           .map<String>((PtrResourceRecord record) => record.domainName)
-          .toSet()
-          .toList();
+          .toSet();
 
       String domainName;
       if (applicationId != null) {