copyWith method
Creates a copy with modified values
Implementation
Country copyWith({
String? name,
String? isoCode,
String? dialingCode,
String? currency,
String? currencyISO,
}) {
return Country(
name: name ?? this.name,
isoCode: isoCode ?? this.isoCode,
dialingCode: dialingCode ?? this.dialingCode,
asset: asset,
currency: currency ?? this.currency,
currencyISO: currencyISO ?? this.currencyISO,
);
}