addTask method
void
addTask({
- required String identifier,
- required String definition,
- TaskEditor? editor,
- required TaskModelMapper mapper,
- required CreateNewInstance createNewInstance,
Implementation
void addTask(
{required String identifier,
required String definition,
TaskEditor? editor,
required TaskModelMapper mapper,
required CreateNewInstance createNewInstance}) {
tasks[identifier] = TaskDetails(
identifier: identifier,
definition: definition,
editor: editor,
mapper: mapper,
createNewInstance: createNewInstance);
}