deleteTask static method
Deletes a material generation task using its ID. 0 indicates success, and other values indicate failure.
Implementation
static Future<int> deleteTask(String taskId) async {
return await _c.invokeMethod(
'deleteTask',
<String, dynamic>{
'taskId': taskId,
},
);
}