stop method

void stop(
  1. String id
)

停止一个任务

Implementation

void stop(String id) {
  _tasks[id]?.cancel();
  _tasks.remove(id);
}