copyWith method

PayMongoAddress copyWith({
  1. String? city,
  2. String? country,
  3. String? line1,
  4. String? line2,
  5. String? postalCode,
  6. String? state,
})

customer address

Implementation

PayMongoAddress copyWith({
  String? city,
  String? country,
  String? line1,
  String? line2,
  String? postalCode,
  String? state,
}) {
  return PayMongoAddress(
    city: city ?? this.city,
    country: country ?? this.country,
    line1: line1 ?? this.line1,
    line2: line2 ?? this.line2,
    postalCode: postalCode ?? this.postalCode,
    state: state ?? this.state,
  );
}