copyWith method

Customer copyWith({
  1. String? name,
  2. String? email,
  3. String? phone,
  4. String? city,
  5. String? address,
  6. String? zip,
  7. String? ip,
  8. String? redirect,
})

Implementation

Customer copyWith({
  String? name,
  String? email,
  String? phone,
  String? city,
  String? address,
  String? zip,
  String? ip,
  String? redirect,
}) {
  return Customer(
    name: name ?? this.name,
    email: email ?? this.email,
    phone: phone ?? this.phone,
    city: city ?? this.city,
    address: address ?? this.address,
    zip: zip ?? this.zip,
    ip: ip ?? this.ip,
    country: country ?? this.country, lastName: '',
    // redirect: redirect ?? this.redirect,
  );
}