addTask method

void addTask({
  1. required String identifier,
  2. required String definition,
  3. TaskEditor? editor,
  4. required TaskModelMapper mapper,
  5. 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);
}