Task constructor

Task({
  1. required String name,
  2. required String key,
  3. required List<Job> jobs,
  4. List<String>? workflows,
  5. String? description,
})

Creates a new Task instance.

name is the name of the task. jobs is the list of jobs associated with the task. key is the unique key of the task (optional). description is the description of the task (optional). workflows is the list of workflow names (optional).

Implementation

Task({
  required this.name,
  required this.key,
  required this.jobs,
  this.workflows,
  this.description,
});