anchor.diff:  
   @visibleForTesting
   class DependencyChecker {
  +  static final _pubName = Platform.isWindows ? 'pub.bat' : 'pub';
     final Context _pathContext;
     final Logger _logger;
     final ProcessManager _processManager;
  
positive.code:       return map[key];
      }
      throw FormatException(
          'Unexpected `pub outdated` JSON output: missing key ($key)', map);
    }
  
    T _expectType<T>(Object object, String errorKey) {
  
negative.code:     try {
        if ((result.stderr as String).isNotEmpty) {
          throw FormatException(
              '`$_pubName outdated --mode=null-safety` exited with exit code '
              '${result.exitCode} and stderr:\n\n${result.stderr}');
        }
        var outdatedOutput = jsonDecode(result.stdout as String);
  