copyWith method

AddressDTO copyWith({
  1. double? lat,
  2. double? long,
  3. String? address1,
  4. String? address2,
  5. String? city,
  6. String? state,
  7. String? postalCode,
  8. String? country,
})

Implementation

AddressDTO copyWith(
    {double? lat,
    double? long,
    String? address1,
    String? address2,
    String? city,
    String? state,
    String? postalCode,
    String? country}) {
  return AddressDTO(
      lat: lat ?? this.lat,
      long: long ?? this.long,
      address1: address1 ?? this.address1,
      address2: address2 ?? this.address2,
      city: city ?? this.city,
      state: state ?? this.state,
      postalCode: postalCode ?? this.postalCode,
      country: country ?? this.country);
}