checkModelCompatibility static method
Check if a model is compatible with the current device Returns compatibility information including expected performance
Implementation
static Future<ModelCompatibility> checkModelCompatibility(
String modelId) async {
try {
final result = await _channel.invokeMethod('checkModelCompatibility', {
'modelId': modelId,
});
return ModelCompatibility.fromMap(Map<String, dynamic>.from(result as Map));
} on PlatformException catch (e) {
throw Exception('Failed to check model compatibility: ${e.message}');
}
}