officialModelDownloadUrlForTesting static method

  1. @visibleForTesting
String? officialModelDownloadUrlForTesting(
  1. String modelId, {
  2. 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';
}