tryParsePubspecOverrides function

Future<Map<String, Dependency>?> tryParsePubspecOverrides(
  1. Directory directory
)

Try parsing the pubspec_overrides.yaml of the given directory.

If the parsing fails for any reason, returns null.

Implementation

Future<Map<String, Dependency>?> tryParsePubspecOverrides(
  Directory directory,
) async {
  try {
    return await parsePubspecOverrides(directory);
  } catch (_) {
    return null;
  }
}