copyWith method

Address copyWith({
  1. String? countryCode,
  2. String? state,
  3. String? city,
  4. String? streetLine1,
  5. String? streetLine2,
  6. String? postalCode,
})

Implementation

Address copyWith({
  String? countryCode,
  String? state,
  String? city,
  String? streetLine1,
  String? streetLine2,
  String? postalCode,
}) =>
    Address(
      countryCode: countryCode ?? this.countryCode,
      state: state ?? this.state,
      city: city ?? this.city,
      streetLine1: streetLine1 ?? this.streetLine1,
      streetLine2: streetLine2 ?? this.streetLine2,
      postalCode: postalCode ?? this.postalCode,
    );