copyWith method

FormattedAddress copyWith({
  1. Optional<String?>? drilldownAddress,
  2. Optional<String?>? streetAddress,
  3. Optional<String?>? addressComment,
  4. Optional<String?>? postCode,
})

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
  );
}