WorldCountryCopyWith<T extends WorldCountry> extension
Extension that adds a copyWith method to the WorldCountry class. This method returns a new instance of WorldCountry with the specified properties updated.
- on
-
- T
Methods
-
copyWith(
{CountryName? name, List< CountryName> ? namesNative, List<String> ? tld, String? code, String? codeNumeric, String? codeShort, String? cioc, bool? independent, bool? unMember, List<FiatCurrency> ? currencies, Idd? idd, List<String> ? altSpellings, Continent? continent, SubRegion? subregion, List<NaturalLanguage> ? languages, LatLng? latLng, bool? landlocked, List<String> ? bordersCodes, double? areaMetric, List<Demonyms> ? demonyms, String? emoji, Maps? maps, int? population, Gini? gini, String? fifa, Car? car, List<String> ? timezones, bool? hasCoatOfArms, Weekday? startOfWeek, CapitalInfo? capitalInfo, PostalCode? postalCode, List<RegionalBloc> ? regionalBlocs, LocaleMapFunction<String> mapper()?}) → WorldCountry -
Available on T, provided by the WorldCountryCopyWith extension
Creates a copy of this object with the given fields replaced with the new values.