addTask method

void addTask(
  1. TaskDescriptor task
)

Add the task to this protocol.

Implementation

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