copyWith method
Implementation
FormattedAddress copyWith({
Optional<String?>? drilldownAddress,
Optional<String?>? streetAddress,
Optional<String?>? addressComment,
Optional<String?>? postCode
}) {
return FormattedAddress(
drilldownAddress: drilldownAddress != null ? drilldownAddress.value : this.drilldownAddress,
streetAddress: streetAddress != null ? streetAddress.value : this.streetAddress,
addressComment: addressComment != null ? addressComment.value : this.addressComment,
postCode: postCode != null ? postCode.value : this.postCode
);
}