copyWith method

KwikAddress copyWith({
  1. String? id,
  2. String? label,
  3. String? address,
  4. String? name,
  5. String? phone,
  6. String? source,
  7. String? email,
  8. String? houseNo,
  9. String? area,
  10. String? landmark,
  11. String? pincode,
  12. String? city,
  13. String? state,
  14. String? country,
  15. String? flatHouseNo,
  16. String? addressLine1,
  17. String? addressLine2,
  18. String? addressLine3,
  19. KwikAddressCoordinates? coordinates,
})

Implementation

KwikAddress copyWith({
  String? id,
  String? label,
  String? address,
  String? name,
  String? phone,
  String? source,
  String? email,
  String? houseNo,
  String? area,
  String? landmark,
  String? pincode,
  String? city,
  String? state,
  String? country,
  String? flatHouseNo,
  String? addressLine1,
  String? addressLine2,
  String? addressLine3,
  KwikAddressCoordinates? coordinates,
}) =>
    KwikAddress(
      id: id ?? this.id,
      label: label ?? this.label,
      address: address ?? this.address,
      name: name ?? this.name,
      phone: phone ?? this.phone,
      source: source ?? this.source,
      email: email ?? this.email,
      houseNo: houseNo ?? this.houseNo,
      area: area ?? this.area,
      landmark: landmark ?? this.landmark,
      pincode: pincode ?? this.pincode,
      city: city ?? this.city,
      state: state ?? this.state,
      country: country ?? this.country,
      flatHouseNo: flatHouseNo ?? this.flatHouseNo,
      addressLine1: addressLine1 ?? this.addressLine1,
      addressLine2: addressLine2 ?? this.addressLine2,
      addressLine3: addressLine3 ?? this.addressLine3,
      coordinates: coordinates ?? this.coordinates,
    );