copyWith method

TaskUpdateRequest copyWith({
  1. String? id,
  2. String? localId,
  3. String? spaceId,
  4. String? pageId,
  5. String? blogPostId,
  6. TaskUpdateRequestStatus? status,
  7. String? createdBy,
  8. String? assignedTo,
  9. String? completedBy,
  10. DateTime? createdAt,
  11. DateTime? updatedAt,
  12. DateTime? dueAt,
  13. DateTime? completedAt,
})

Implementation

TaskUpdateRequest copyWith(
    {String? id,
    String? localId,
    String? spaceId,
    String? pageId,
    String? blogPostId,
    TaskUpdateRequestStatus? status,
    String? createdBy,
    String? assignedTo,
    String? completedBy,
    DateTime? createdAt,
    DateTime? updatedAt,
    DateTime? dueAt,
    DateTime? completedAt}) {
  return TaskUpdateRequest(
    id: id ?? this.id,
    localId: localId ?? this.localId,
    spaceId: spaceId ?? this.spaceId,
    pageId: pageId ?? this.pageId,
    blogPostId: blogPostId ?? this.blogPostId,
    status: status ?? this.status,
    createdBy: createdBy ?? this.createdBy,
    assignedTo: assignedTo ?? this.assignedTo,
    completedBy: completedBy ?? this.completedBy,
    createdAt: createdAt ?? this.createdAt,
    updatedAt: updatedAt ?? this.updatedAt,
    dueAt: dueAt ?? this.dueAt,
    completedAt: completedAt ?? this.completedAt,
  );
}