CountrySelector constructor

const CountrySelector({
  1. Key? key,
  2. required ValueChanged<Country> onCountrySelected,
  3. required FlagCache flagCache,
  4. ScrollController? scrollController,
  5. ScrollPhysics? scrollPhysics,
  6. bool addFavoritesSeparator = true,
  7. bool showCountryCode = false,
  8. String? noResultMessage,
  9. List<IsoCode> favoriteCountries = const [],
  10. List<IsoCode>? countries,
  11. bool searchAutofocus = kIsWeb,
  12. TextStyle? subtitleStyle,
  13. TextStyle? titleStyle,
  14. InputDecoration? searchBoxDecoration,
  15. TextStyle? searchBoxTextStyle,
  16. Color? searchBoxIconColor,
  17. double flagSize = 40,
})

Implementation

const CountrySelector({
  super.key,
  required this.onCountrySelected,
  required this.flagCache,
  this.scrollController,
  this.scrollPhysics,
  this.addFavoritesSeparator = true,
  this.showCountryCode = false,
  this.noResultMessage,
  this.favoriteCountries = const [],
  this.countries,
  this.searchAutofocus = kIsWeb,
  this.subtitleStyle,
  this.titleStyle,
  this.searchBoxDecoration,
  this.searchBoxTextStyle,
  this.searchBoxIconColor,
  this.flagSize = 40,
});