copyWith method

AssignmentEntity copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? reporterId,
  4. String? assigneeId,
  5. TaskEntity? task,
  6. String? workflowId,
  7. int? workflowTaskSeqNumber,
  8. Object? timestamp,
  9. int? status,
  10. List<AssignmentResultEntity>? resultsCurrent,
  11. List<AssignmentResultEntity>? resultsPrevious,
  12. String? triggeredById,
  13. WorkflowNotificationEntity? confirmMessage,
  14. 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,
  );
}