copyWith method

QuickbooksPhysicalAddress copyWith({
  1. String? id,
  2. String? line1,
  3. String? line2,
  4. String? line3,
  5. String? line4,
  6. String? line5,
  7. String? city,
  8. String? country,
  9. String? countrySubDivisionCode,
  10. String? postalCode,
  11. double? lat,
  12. double? long,
})

Implementation

QuickbooksPhysicalAddress copyWith({
  String? id,
  String? line1,
  String? line2,
  String? line3,
  String? line4,
  String? line5,
  String? city,
  String? country,
  String? countrySubDivisionCode,
  String? postalCode,
  double? lat,
  double? long,
}) {
  return QuickbooksPhysicalAddress(
    id: id ?? this.id,
    line1: line1 ?? this.line1,
    line2: line2 ?? this.line2,
    line3: line3 ?? this.line3,
    line4: line4 ?? this.line4,
    line5: line5 ?? this.line5,
    city: city ?? this.city,
    country: country ?? this.country,
    countrySubDivisionCode:
        countrySubDivisionCode ?? this.countrySubDivisionCode,
    postalCode: postalCode ?? this.postalCode,
    lat: lat ?? this.lat,
    long: long ?? this.long,
  );
}