We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The implementation of CountryCodes#detailsFromAlpha2 is missing the localizedCountryName parameter to the CountryDetails#fromMap call.
CountryCodes#detailsFromAlpha2
localizedCountryName
CountryDetails#fromMap
Current version:
static CountryDetails detailsFromAlpha2(String alpha2) { return CountryDetails.fromMap(codes.entries.where((entry) => entry.key == alpha2).single.value); }
but should probably be something like:
static CountryDetails detailsFromAlpha2(String alpha2) { var codeEntry = codes.entries.where((entry) => entry.key == alpha2).single; return CountryDetails.fromMap(codeEntry.value, _localizedCountryNames[codeEntry.key]); }
The text was updated successfully, but these errors were encountered:
Work-around until fix:
CountryDetails cd = CountryCodes.countryCodes().where((c) => c.alpha2Code == alpha2ToLookFor).single;
Sorry, something went wrong.
No branches or pull requests
The implementation of
CountryCodes#detailsFromAlpha2
is missing thelocalizedCountryName
parameter to theCountryDetails#fromMap
call.Current version:
but should probably be something like:
The text was updated successfully, but these errors were encountered: