copyWith method
Country
copyWith(
{ - String? name,
- String? isoCode,
- Continent? continent,
- List<Language>? languages,
- List<Currency>? currencies,
- String? dialCode,
- String? phonePattern,
- String? zipCodePattern,
- List<String>? timezones,
- String? flagAssetPath,
})
Implementation
Country copyWith({
String? name,
String? isoCode,
Continent? continent,
List<Language>? languages,
List<Currency>? currencies,
String? dialCode,
String? phonePattern,
String? zipCodePattern,
List<String>? timezones,
String? flagAssetPath,
}) {
return Country(
name: name ?? this.name,
isoCode: isoCode ?? this.isoCode,
continent: continent ?? this.continent,
languages: languages ?? this.languages,
currencies: currencies ?? this.currencies,
dialCode: dialCode ?? this.dialCode,
phonePattern: phonePattern ?? this.phonePattern,
zipCodePattern: zipCodePattern ?? this.zipCodePattern,
timezones: timezones ?? this.timezones,
flagAssetPath: flagAssetPath ?? this.flagAssetPath,
);
}