CountrySelector constructor

const CountrySelector({
  1. required ValueChanged<Country> onCountrySelected,
  2. required bool isBottomSheet,
  3. ScrollController? scrollController,
  4. ScrollPhysics? scrollPhysics,
  5. bool addFavouriteSeparator = true,
  6. bool showCountryCode = false,
  7. String? noResultMessage,
  8. List<IsoCode> favoriteCountries = const [],
  9. List<IsoCode>? countries,
  10. bool showSearchInput = true,
  11. TextStyle? countryCodeStyle,
  12. TextStyle? countryNameStyle,
  13. InputDecoration? searchInputDecoration,
  14. TextStyle? searchInputTextStyle,
  15. Color? defaultSearchInputIconColor,
  16. Color? bottomSheetDragHandlerColor,
  17. double flagSize = 48,
  18. BoxShape flagShape = BoxShape.circle,
  19. bool showCountryName = true,
  20. bool showCountryFlag = true,
  21. double? searchInputHeight,
  22. double? searchInputWidth,
  23. Key? key,
})

Implementation

const CountrySelector({
  required this.onCountrySelected,
  required this.isBottomSheet,
  this.scrollController,
  this.scrollPhysics,
  this.addFavouriteSeparator = true,
  this.showCountryCode = false,
  this.noResultMessage,
  this.favoriteCountries = const [],
  this.countries,
  this.showSearchInput = true,
  this.countryCodeStyle,
  this.countryNameStyle,
  this.searchInputDecoration,
  this.searchInputTextStyle,
  this.defaultSearchInputIconColor,
  this.bottomSheetDragHandlerColor,
  this.flagSize = 48,
  this.flagShape = BoxShape.circle,
  this.showCountryName = true,
  this.showCountryFlag = true,
  this.searchInputHeight,
  this.searchInputWidth,
  super.key,
});