copyWith method
Implementation
CountryModel copyWith({
String? countryName,
Set<String>? regions,
String? iso2Code,
String? flag,
String? intlDialCode,
String? format,
int? orderPriority,
Set<String>? areaCodes,
String? currentAreaCode,
}) {
return CountryModel(
countryName: countryName ?? this.countryName,
regions: regions ?? this.regions,
iso2Code: iso2Code ?? this.iso2Code,
flag: flag ?? this.flag,
intlDialCode: intlDialCode ?? this.intlDialCode,
format: format ?? this.format,
orderPriority: orderPriority ?? this.orderPriority,
areaCodes: areaCodes ?? this.areaCodes,
currentAreaCode: currentAreaCode ?? this.currentAreaCode,
);
}