copyWith method

ServiceAgreementFormData copyWith({
  1. bool? hasServiceAgreement,
  2. DateTime? beginDate,
  3. ServiceAgreementTerm? term,
  4. int? termMonths,
  5. int? termDays,
})

Implementation

ServiceAgreementFormData copyWith({
  bool? hasServiceAgreement,
  DateTime? beginDate,
  ServiceAgreementTerm? term,
  int? termMonths,
  int? termDays,
}) {
  return ServiceAgreementFormData(
    hasServiceAgreement: hasServiceAgreement ?? this.hasServiceAgreement,
    beginDate: beginDate ?? this.beginDate,
    term: term ?? this.term,
    termMonths: termMonths ?? this.termMonths,
    termDays: termDays ?? this.termDays,
  );
}