flutter_country_code library

Functions

getCountries() List<Country>
This function returns list of countries
getCountryByCountryCode(String countryCode) Country
This function returns an country whose countryCode matches with the passed one.
getDefaultCountry() Future<Country>
This function returns an user's current country. User's sim country code is matched with the ones in the list. if there's no sim country code it will return first country on the list