anchor.diff:    Future<void> _attachToDevice(Device device) async {
       final FlutterProject flutterProject = FlutterProject.current();
   
  -    Future<int> getDevicePort() async {
  -      if (debugPort != null) {
  -        return debugPort;
  -      }
  -      // This call takes a non-trivial amount of time, and only iOS devices and
  -      // simulators support it.
  -      // If/when we do this on Android or other platforms, we can update it here.
  -      if (device is IOSDevice || device is IOSSimulator) {
  -      }
  -      return null;
  -    }
  -    final int devicePort = await getDevicePort();
  -
       final Daemon daemon = boolArg('machine')
         ? Daemon(
             stdinCommandStream,
  
positive.code:     final String ipv4Loopback = InternetAddress.loopbackIPv4.address;
      final String hostname = usesIpv6 ? ipv6Loopback : ipv4Loopback;
  
      if (devicePort == null && debugUri == null) {
        if (device is FuchsiaDevice) {
          final String module = stringArg('module');
          if (module == null) {
  
negative.code:           buildObservatoryUri(
              device,
              debugUri?.host ?? hostname,
              debugPort ?? debugUri.port,
              hostVmservicePort,
              debugUri?.path,
            )
  