getApiFileForRef method
Gets the path for an API file cached for a specific git ref and dart root
Implementation
File getApiFileForRef(String repoPath, String ref, String dartRelativePath) {
final repoCacheDir = getRepositoryCacheDir(repoPath);
final sanitizedDartPath = _sanitizePath(dartRelativePath);
return File(join(repoCacheDir.path, '${ref}_${sanitizedDartPath}_api.json'));
}