diff --git a/lib/country_code.dart b/lib/country_code.dart index 3d1a6b47..bde106a6 100644 --- a/lib/country_code.dart +++ b/lib/country_code.dart @@ -36,7 +36,7 @@ class CountryCode { factory CountryCode.fromCountryCode(String countryCode) { final Map? jsonCode = codes.firstWhereOrNull( - (code) => code['code'] == countryCode, + (code) => code['code']?.toUpperCase() == countryCode.toUpperCase(), ); return CountryCode.fromJson(jsonCode!); }