isModelInstalled static method
Checks if a model specification is fully installed and valid
Implementation
static Future<bool> isModelInstalled(ModelSpec spec) async {
// Check SharedPreferences first
if (!await ModelPreferencesManager.isModelInstalled(spec)) {
return false;
}
// Validate all files exist and are valid
return await ModelFileSystemManager.validateModelFiles(spec);
}