CountryPickerDialog constructor

const CountryPickerDialog({
  1. Key? key,
  2. required List<Country> countryList,
  3. required ValueChanged<Country> onCountryChanged,
  4. required Country selectedCountry,
  5. required List<Country> filteredFavoriteCountries,
  6. required bool disableCountryCode,
  7. required Position favoriteCountryCodePosition,
  8. required Position countryCodePosition,
  9. required Position favoriteIconPosition,
  10. required bool showDialogCountryFlag,
  11. bool enableFavoriteIcon = true,
  12. bool rltSupport = true,
  13. String languageCode = 'en',
  14. List<String> favorite = const [],
  15. PickerDialogStyle? style,
  16. Widget? favoriteIcon,
})

Implementation

const CountryPickerDialog({
  super.key,
  required this.countryList,
  required this.onCountryChanged,
  required this.selectedCountry,
  required this.filteredFavoriteCountries,
  required this.disableCountryCode,
  required this.favoriteCountryCodePosition,
  required this.countryCodePosition,
  required this.favoriteIconPosition,
  required this.showDialogCountryFlag,
  this.enableFavoriteIcon = true,
  this.rltSupport = true,
  this.languageCode = 'en',
  this.favorite = const [],
  this.style,
  this.favoriteIcon,
});