copyWith method

Address copyWith({
  1. String? address1,
  2. String? address2,
  3. String? city,
  4. String? state,
  5. String? postalCode,
  6. String? country,
  7. dynamic location,
})

Implementation

Address copyWith({
  String? address1,
  String? address2,
  String? city,
  String? state,
  String? postalCode,
  String? country,
  dynamic location,
}) {
  return Address(
    address1: address1 ?? this.address1,
    address2: address2 ?? this.address2,
    city: city ?? this.city,
    state: state ?? this.state,
    postalCode: postalCode ?? this.postalCode,
    country: country ?? this.country,
    location: location ?? this.location,
  );
}