copyWith method

Address copyWith({
  1. String? formatted,
  2. String? street,
  3. String? city,
  4. String? state,
  5. String? postalCode,
  6. String? country,
  7. String? isoCountryCode,
  8. String? subAdministrativeArea,
  9. String? subLocality,
  10. String? poBox,
  11. String? neighborhood,
  12. Label<AddressLabel>? label,
  13. PropertyMetadata? metadata,
})

Implementation

Address copyWith({
  String? formatted,
  String? street,
  String? city,
  String? state,
  String? postalCode,
  String? country,
  String? isoCountryCode,
  String? subAdministrativeArea,
  String? subLocality,
  String? poBox,
  String? neighborhood,
  Label<AddressLabel>? label,
  PropertyMetadata? metadata,
}) => Address(
  formatted: formatted ?? this.formatted,
  street: street ?? this.street,
  city: city ?? this.city,
  state: state ?? this.state,
  postalCode: postalCode ?? this.postalCode,
  country: country ?? this.country,
  isoCountryCode: isoCountryCode ?? this.isoCountryCode,
  subAdministrativeArea: subAdministrativeArea ?? this.subAdministrativeArea,
  subLocality: subLocality ?? this.subLocality,
  poBox: poBox ?? this.poBox,
  neighborhood: neighborhood ?? this.neighborhood,
  label: label ?? this.label,
  metadata: metadata ?? this.metadata,
);