deleteModel method

Future<String> deleteModel(
  1. String modelTag
)

Delete the model of the language specified in the argument. If model has not been previously downloaded it returns 'not exists'. Else returns success or failure depending on whether the deletion completes or not.

Implementation

Future<String> deleteModel(String modelTag) async {
  final result = await Vision.channel.invokeMethod('vision#manageInkModels',
      <String, dynamic>{'task': 'delete', 'modelTag': modelTag});
  return result.toString();
}