copyWith method
Task
copyWith(
{ - String? id,
- String? localId,
- String? spaceId,
- String? pageId,
- String? blogPostId,
- TaskStatus? status,
- BodySingle? body,
- String? createdBy,
- String? assignedTo,
- String? completedBy,
- DateTime? createdAt,
- DateTime? updatedAt,
- DateTime? dueAt,
- DateTime? completedAt,
})
Implementation
Task copyWith(
{String? id,
String? localId,
String? spaceId,
String? pageId,
String? blogPostId,
TaskStatus? status,
BodySingle? body,
String? createdBy,
String? assignedTo,
String? completedBy,
DateTime? createdAt,
DateTime? updatedAt,
DateTime? dueAt,
DateTime? completedAt}) {
return Task(
id: id ?? this.id,
localId: localId ?? this.localId,
spaceId: spaceId ?? this.spaceId,
pageId: pageId ?? this.pageId,
blogPostId: blogPostId ?? this.blogPostId,
status: status ?? this.status,
body: body ?? this.body,
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,
);
}