isModelDownloaded method
Checks whether a model is downloaded or not.
Implementation
Future<bool> isModelDownloaded(String model) async {
final result = await channel.invokeMethod(method, <String, dynamic>{
'task': 'check',
'model': model,
});
return result as bool;
}