copyWithout method

ServiceAgreementFormData copyWithout({
  1. bool hasServiceAgreement = false,
  2. bool beginDate = false,
  3. bool term = false,
  4. bool termMonths = false,
  5. bool termDays = false,
})

Implementation

ServiceAgreementFormData copyWithout({
  bool hasServiceAgreement = false,
  bool beginDate = false,
  bool term = false,
  bool termMonths = false,
  bool termDays = false,
}) {
  return ServiceAgreementFormData(
    hasServiceAgreement:
        hasServiceAgreement ? null : this.hasServiceAgreement,
    beginDate: beginDate ? null : this.beginDate,
    term: term ? null : this.term,
    termMonths: termMonths ? null : this.termMonths,
    termDays: termDays ? null : this.termDays,
  );
}