copyWith method
AssignmentEntity
copyWith({
- String? documentID,
- String? appId,
- String? reporterId,
- String? assigneeId,
- TaskEntity? task,
- String? workflowId,
- int? workflowTaskSeqNumber,
- Object? timestamp,
- int? status,
- List<
AssignmentResultEntity> ? resultsCurrent, - List<
AssignmentResultEntity> ? resultsPrevious, - String? triggeredById,
- WorkflowNotificationEntity? confirmMessage,
- WorkflowNotificationEntity? rejectMessage,
Implementation
AssignmentEntity copyWith({
String? documentID,
String? appId,
String? reporterId,
String? assigneeId,
TaskEntity? task,
String? workflowId,
int? workflowTaskSeqNumber,
Object? timestamp,
int? status,
List<AssignmentResultEntity>? resultsCurrent,
List<AssignmentResultEntity>? resultsPrevious,
String? triggeredById,
WorkflowNotificationEntity? confirmMessage,
WorkflowNotificationEntity? rejectMessage,
}) {
return AssignmentEntity(
appId: appId ?? this.appId,
reporterId: reporterId ?? this.reporterId,
assigneeId: assigneeId ?? this.assigneeId,
task: task ?? this.task,
workflowId: workflowId ?? this.workflowId,
workflowTaskSeqNumber:
workflowTaskSeqNumber ?? this.workflowTaskSeqNumber,
timestamp: timestamp ?? this.timestamp,
status: status ?? this.status,
resultsCurrent: resultsCurrent ?? this.resultsCurrent,
resultsPrevious: resultsPrevious ?? this.resultsPrevious,
triggeredById: triggeredById ?? this.triggeredById,
confirmMessage: confirmMessage ?? this.confirmMessage,
rejectMessage: rejectMessage ?? this.rejectMessage,
);
}