altafc22 / csc_picker

A flutter package to display a country, states, and cities. In addition it gives the possibility to select a list of countries, States and Cities depends on Selected, also you can search country, state, and city all around the world.
BSD 3-Clause "New" or "Revised" License
27 stars 118 forks source link

Add config/property to filter countries #57

Closed ritsat closed 1 year ago

ritsat commented 1 year ago

I can see the function added to filter country based on user input but not able to see the call for this function anywhere. Also not able to see any property to set the country filter criteria. Below existing function code in csc_picker.dart

///filter Country Data according to user input Future<List<String?>> getCountryData(filter) async {

Please add config/property to set country filter. For example only show certain set of countries just like United State, Canada, etc.

ritsat commented 1 year ago

It is now available with this package using countryFilter property. Hence closing the issue