copyWith method

Task copyWith({
  1. int? globalId,
  2. int? id,
  3. int? contentId,
  4. String? status,
  5. String? title,
  6. String? description,
  7. String? body,
  8. String? creator,
  9. String? assignee,
  10. String? completeUser,
  11. int? createDate,
  12. int? dueDate,
  13. int? updateDate,
  14. int? completeDate,
  15. GenericLinks? links,
})

Implementation

Task copyWith(
    {int? globalId,
    int? id,
    int? contentId,
    String? status,
    String? title,
    String? description,
    String? body,
    String? creator,
    String? assignee,
    String? completeUser,
    int? createDate,
    int? dueDate,
    int? updateDate,
    int? completeDate,
    GenericLinks? links}) {
  return Task(
    globalId: globalId ?? this.globalId,
    id: id ?? this.id,
    contentId: contentId ?? this.contentId,
    status: status ?? this.status,
    title: title ?? this.title,
    description: description ?? this.description,
    body: body ?? this.body,
    creator: creator ?? this.creator,
    assignee: assignee ?? this.assignee,
    completeUser: completeUser ?? this.completeUser,
    createDate: createDate ?? this.createDate,
    dueDate: dueDate ?? this.dueDate,
    updateDate: updateDate ?? this.updateDate,
    completeDate: completeDate ?? this.completeDate,
    links: links ?? this.links,
  );
}