isModelDownloaded method

Future<bool> isModelDownloaded(
  1. String model
)

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;
}