copyWith method

HomeCity copyWith({
  1. int? id,
  2. String? label,
  3. String? countryCode,
  4. String? zip,
  5. int? numberOfResults,
})

Implementation

HomeCity copyWith({
  int? id,
  String? label,
  String? countryCode,
  String? zip,
  int? numberOfResults,
}) => HomeCity(
  id: id ?? this.id,
  label: label ?? this.label,
  countryCode: countryCode ?? this.countryCode,
  zip: zip ?? this.zip,
  numberOfResults: numberOfResults ?? this.numberOfResults,
);