storeApiFile method
Stores API documentation for a specific git ref and dart root
Implementation
Future<void> storeApiFile(
String repoPath,
String ref,
String dartRelativePath,
String content,
) async {
final repoCacheDir = getRepositoryCacheDir(repoPath);
if (!repoCacheDir.existsSync()) {
repoCacheDir.createSync(recursive: true);
}
final apiFile = getApiFileForRef(repoPath, ref, dartRelativePath);
await apiFile.writeAsString(content);
}