copyWith method

ApproverDTO copyWith({
  1. UserDTO? approver,
  2. ApproverDTOApproverDecision? approverDecision,
})

Implementation

ApproverDTO copyWith(
    {UserDTO? approver, ApproverDTOApproverDecision? approverDecision}) {
  return ApproverDTO(
    approver: approver ?? this.approver,
    approverDecision: approverDecision ?? this.approverDecision,
  );
}