downloadModel method
Downloads a model.
Returns success
if model downloads successfully or model is already downloaded.
On failing to download it throws an error.
Implementation
Future<String> downloadModel(String modelTag, {bool isWifiRequired = true}) async {
final result = await Vision.channel.invokeMethod("vision#manageRemoteModel",
<String, dynamic>{"task": "download", "model": modelTag, "wifi": isWifiRequired});
return result.toString();
}