anchor.diff:      final deps = Dependency.getDependencies(pubspec);
       final sdkConstraint = pubspec.environment['sdk'];
   
  +    Version latestVersion;
  +
  +    if (flagOutdated) {
  +      latestVersion =
  +          await _latestVersion(service, pubspec.name, pubspec.version);
  +    }
  +
       final package = VizPackage._(
         pubspec.name,
         pubspec.version,
         deps,
         sdkConstraint,
  +      latestVersion,
       );
  -
  -    if (flagOutdated) {
  -      await package._updateLatestVersion(service);
  -    }
   
       return package;
     }
  
positive.code:     _onlyDev = value;
    }
  
    Version _latestVersion;
  
    Version get latestVersion => _latestVersion;
  
    VizPackage._(
      this.name,
      this.version,
      Set<Dependency> deps,
      this.sdkConstraint,
    ) : dependencies = UnmodifiableSetView(deps);
  
    static Future<VizPackage> forDirectory(
  
negative.code:   @override
    int get hashCode => name.hashCode;
  
    static Future<Version> _latestVersion(
      Service service,
      String name,
      Version definedVersion,
    ) async {
      if (definedVersion == null) {
        // Likely not published. Don't try.
        return null;
      }
  
      final versions = await service.queryVersions(name);
  
      Version _latestVersion;
      if (versions != null) {
        _latestVersion = primaryVersion(
            versions.map((e) => Version.parse(e)).toList(),
            definedVersion.isPreRelease);
      }
  
      if (_latestVersion != null) {
        assert(_latestVersion.compareTo(definedVersion) >= 0);
      }
  
      return _latestVersion;
  