copyWith method

Address copyWith({
  1. String? addressId,
  2. String? name,
  3. String? contactNo,
  4. String? address,
  5. Country? country,
  6. State? state,
  7. City? city,
})

Implementation

Address copyWith({  String? addressId,
  String? name,
  String? contactNo,
  String? address,
  Country? country,
  State? state,
  City? city,
}) => Address(  addressId: addressId ?? this.addressId,
  name: name ?? this.name,
  contactNo: contactNo ?? this.contactNo,
  address: address ?? this.address,
  country: country ?? this.country,
  state: state ?? this.state,
  city: city ?? this.city,
);