copyWith method

VCardAddress copyWith({
  1. VCardIdentifier? identifier,
  2. bool? preferred,
  3. String? auxLine1,
  4. String? auxLine2,
  5. String? street,
  6. String? city,
  7. String? state,
  8. String? zipCode,
  9. String? country,
})

Creates a copy of this VCardAddress but with the given fields replaced with the new values.

Implementation

VCardAddress copyWith({
  VCardIdentifier? identifier,
  bool? preferred,
  String? auxLine1,
  String? auxLine2,
  String? street,
  String? city,
  String? state,
  String? zipCode,
  String? country,
}) =>
    VCardAddress(
      identifier: identifier ?? this.identifier,
      preferred: preferred ?? this.preferred,
      auxLine1: auxLine1 ?? this.auxLine1,
      auxLine2: auxLine2 ?? this.auxLine2,
      street: street ?? this.street,
      city: city ?? this.city,
      state: state ?? this.state,
      zipCode: zipCode ?? this.zipCode,
      country: country ?? this.country,
    );