copyWith method

  1. @override
AssignmentModel copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? reporterId,
  4. String? assigneeId,
  5. TaskModel? task,
  6. WorkflowModel? workflow,
  7. int? workflowTaskSeqNumber,
  8. DateTime? timestamp,
  9. AssignmentStatus? status,
  10. List<AssignmentResultModel>? resultsCurrent,
  11. List<AssignmentResultModel>? resultsPrevious,
  12. String? triggeredById,
  13. WorkflowNotificationModel? confirmMessage,
  14. WorkflowNotificationModel? rejectMessage,
})
override

Implementation

@override
AssignmentModel copyWith({
  String? documentID,
  String? appId,
  String? reporterId,
  String? assigneeId,
  TaskModel? task,
  WorkflowModel? workflow,
  int? workflowTaskSeqNumber,
  DateTime? timestamp,
  AssignmentStatus? status,
  List<AssignmentResultModel>? resultsCurrent,
  List<AssignmentResultModel>? resultsPrevious,
  String? triggeredById,
  WorkflowNotificationModel? confirmMessage,
  WorkflowNotificationModel? rejectMessage,
}) {
  return AssignmentModel(
    documentID: documentID ?? this.documentID,
    appId: appId ?? this.appId,
    reporterId: reporterId ?? this.reporterId,
    assigneeId: assigneeId ?? this.assigneeId,
    task: task ?? this.task,
    workflow: workflow ?? this.workflow,
    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,
  );
}