officialModelDownloadUrlForTesting static method
String?
officialModelDownloadUrlForTesting(
- String modelId, {
- required bool iosLike,
})
Implementation
@visibleForTesting
static String? officialModelDownloadUrlForTesting(
String modelId, {
required bool iosLike,
}) {
final artifact = _officialModelForId(modelId);
if (artifact == null) return null;
if (iosLike) {
final archiveName = artifact.iosArchiveName;
return archiveName == null
? null
: '$_iosModelReleaseBaseUrl/$archiveName';
}
final assetName = artifact.androidAssetName;
return assetName == null ? null : '$_androidModelReleaseBaseUrl/$assetName';
}