copyWith method

PaystubAddress copyWith({
  1. String? city,
  2. String? country,
  3. String? postalCode,
  4. String? region,
  5. String? street,
  6. String? line1,
  7. String? line2,
  8. String? stateCode,
})

Implementation

PaystubAddress copyWith(
    {String? city,
    String? country,
    String? postalCode,
    String? region,
    String? street,
    String? line1,
    String? line2,
    String? stateCode}) {
  return PaystubAddress(
      city: city ?? this.city,
      country: country ?? this.country,
      postalCode: postalCode ?? this.postalCode,
      region: region ?? this.region,
      street: street ?? this.street,
      line1: line1 ?? this.line1,
      line2: line2 ?? this.line2,
      stateCode: stateCode ?? this.stateCode);
}