getApiFileForRef method

File getApiFileForRef(
  1. String repoPath,
  2. String ref,
  3. String dartRelativePath
)

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'));
}