copyWith method
Implementation
AddressModel copyWith({
String? street,
String? number,
String? city,
String? state,
String? country,
String? zipCode,
String? district,
}) {
return AddressModel(
street: street ?? this.street,
number: number ?? this.number,
city: city ?? this.city,
state: state ?? this.state,
country: country ?? this.country,
zipCode: zipCode ?? this.zipCode,
district: district ?? this.district,
);
}