deleteModel method

Future<String> deleteModel(
  1. String modelTag
)

Deletes a model. Returns success if model is deleted successfully or model is not present.

Implementation

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