removeTask method

void removeTask(
  1. TaskConfiguration task
)

Remove the task currently present in this configuration including removing it from any TaskControl's which initiate it.

Implementation

void removeTask(TaskConfiguration task) {
  // Remove all controls which control this task
  for (var taskControl in taskControls) {
    if (taskControl.taskName == task.name) {
      taskControls.remove(taskControl);
    }
  }

  // Remove task itself.
  tasks.remove(task);
  _taskMap.remove(task.name);
}