addTask method

void addTask(
  1. TaskConfiguration task
)

Add the task to this protocol.

Implementation

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