copyWith method

Address copyWith({
  1. String? use,
  2. String? type,
  3. String? text,
  4. FixedList<String>? line,
  5. String? city,
  6. String? district,
  7. String? state,
  8. String? postalCode,
  9. String? country,
  10. Period? period,
})

Creates a copy of the Address instance and allows for non-destructive mutation.

Implementation

Address copyWith({
  String? use,
  String? type,
  String? text,
  FixedList<String>? line,
  String? city,
  String? district,
  String? state,
  String? postalCode,
  String? country,
  Period? period,
}) =>
    Address(
      use: use ?? this.use,
      type: type ?? this.type,
      text: text ?? this.text,
      line: line ?? this.line,
      city: city ?? this.city,
      district: district ?? this.district,
      state: state ?? this.state,
      postalCode: postalCode ?? this.postalCode,
      country: country ?? this.country,
      period: period ?? this.period,
    );