copyWith method

AddressLabels<T> copyWith({
  1. String? description,
  2. String? number,
  3. String? street,
  4. String? other,
  5. String? municipality,
  6. String? county,
  7. String? province,
  8. String? postalCode,
  9. String? countryCode,
  10. List<AddressTypeSelection<T>>? addressTypes,
  11. String? addressTypeTooltip,
  12. List<(String, String, Image?)>? provinceList,
})

Implementation

AddressLabels<T> copyWith({
  String? description,
  String? number,
  String? street,
  String? other,
  String? municipality,
  String? county,
  String? province,
  String? postalCode,
  String? countryCode,
  List<AddressTypeSelection<T>>? addressTypes,
  String? addressTypeTooltip,
  List<(String, String, Image?)>? provinceList,
}) {
  return AddressLabels<T>(
    description: description ?? this.description,
    number: number ?? this.number,
    street: street ?? this.street,
    other: other ?? this.other,
    municipality: municipality ?? this.municipality,
    county: county ?? this.county,
    province: province ?? this.province,
    postalCode: postalCode ?? this.postalCode,
    countryCode: countryCode ?? this.countryCode,
    addressTypes: addressTypes ?? this.addressTypes,
    provinceList: provinceList ?? this.provinceList,
  );
}