picker library

Constants

countryCodePackageName → const String

Functions

getCountries(BuildContext context) Future<List<Country>>
This function returns list of countries
getCountryByCountryCode(BuildContext context, String countryCode) Future<Country?>
This function returns an country whose countryCode matches with the passed one.
getDefaultCountry(BuildContext context) 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 is no sim in the device, first country in the list will be returned. This function returns an user's current country. User's sim country code is matched with the ones in the list. If there is no sim in the device, first country in the list will be returned.
showCountryPickerDialog(BuildContext context, {Widget? title, double cornerRadius = 35, bool focusSearchBox = false}) Future<Country?>
showCountryPickerSheet(BuildContext context, {Widget? title, Widget? cancelWidget, double cornerRadius = 35, bool focusSearchBox = false, double heightFactor = 0.9}) Future<Country?>