Skip to content

Commit

Permalink
Added dialCodeHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
WorkWithAfridi committed Jun 19, 2023
1 parent 39550b0 commit d5c1516
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions lib/country_data/country_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -210,24 +210,6 @@ class CountryHandler {
];

void _setUpCountryList() {
// for (final country in _countryMap) {
// countryList.add(CountryData.fromMap(country));
// }

// // Sort the list based on country name
// countryList.sort((a, b) => a.name.compareTo(b.name));

// // Remove duplicates based on country name
// final uniqueCountries = <CountryData>[];
// var previousName = '';

// for (final country in countryList) {
// if (country.name != previousName) {
// uniqueCountries.add(country);
// previousName = country.name;
// }
// }
// countryList = uniqueCountries;
for (final country in _countryMap) {
countryList.add(CountryData.fromMap(country));
}
Expand Down

0 comments on commit d5c1516

Please sign in to comment.