execute method

void execute(
  1. KanbanColumn column,
  2. Task task
)

Adds a task to the given column.

Notifies listeners with a TaskAddedEvent when successful.

Parameters:

  • column: The column to add the task to
  • task: The task to be added

Implementation

void execute(KanbanColumn column, Task task) {
  column.addTask(task);
  EventNotifier().notify(TaskAddedEvent(task, column));
}