readSpecVersionsFromFilePath function
Implementation
List<SpecVersion> readSpecVersionsFromFilePath(String filePath) {
if (filePath.endsWith('.json')) {
return _readSpecVersionFromJson(filePath);
} else {
return _readSpecVersionJsonLines(filePath);
}
}