deleteModel method
Deletes a model. Returns true if model is deleted successfully or model is not present.
Implementation
Future<bool> deleteModel(String model) async {
final result = await channel.invokeMethod(method, <String, dynamic>{
'task': 'delete',
'model': model,
});
return result.toString() == 'success';
}