execute method
Reorders a task within the same column.
Notifies listeners with a TaskReorderedEvent when successful.
Parameters:
column: The column containing the taskoldIndex: The current index of the tasknewIndex: The desired index for the task
Implementation
void execute(KanbanColumn column, int oldIndex, int newIndex) {
Task task = column.tasks[oldIndex];
column.reorderTask(oldIndex, newIndex);
EventNotifier()
.notify(TaskReorderedEvent(column, task, oldIndex, newIndex));
}