isModelDownloaded property
Whether the model files have been downloaded.
Implementation
Future<bool> get isModelDownloaded async {
final dir = await _modelsDir;
final modelFile = File('${dir.path}/$_modelFilename');
final vocabFile = File('${dir.path}/$_vocabFilename');
return modelFile.existsSync() && vocabFile.existsSync();
}