addTask method

void addTask(
  1. TaskConfiguration task
)

Add the task to this protocol.

A task with the same name replaces the earlier one in the task lookup.

Implementation

void addTask(TaskConfiguration task) {
  tasks.add(task);
  _taskMap[task.name] = task;
}