copyWith method
AddressLabels<T>
copyWith({
- String? description,
- String? number,
- String? street,
- String? other,
- String? municipality,
- String? county,
- String? province,
- String? postalCode,
- String? countryCode,
- String? provincePickerSemanticLabel,
- String? countryPickerSemanticLabel,
- List<
AddressTypeSelection< ? addressTypes,T> > - String? addressTypeTooltip,
- 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,
String? provincePickerSemanticLabel,
String? countryPickerSemanticLabel,
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,
provincePickerSemanticLabel:
provincePickerSemanticLabel ?? this.provincePickerSemanticLabel,
countryPickerSemanticLabel:
countryPickerSemanticLabel ?? this.countryPickerSemanticLabel,
addressTypes: addressTypes ?? this.addressTypes,
provinceList: provinceList ?? this.provinceList,
);
}