CountrySelector constructor
const
CountrySelector({
- Key? key,
- required ValueChanged<
Country> onCountrySelected, - required FlagCache flagCache,
- ScrollController? scrollController,
- ScrollPhysics? scrollPhysics,
- bool addFavoritesSeparator = true,
- bool showCountryCode = false,
- String? noResultMessage,
- List<
IsoCode> favoriteCountries = const [], - List<
IsoCode> ? countries, - bool searchAutofocus = kIsWeb,
- TextStyle? subtitleStyle,
- TextStyle? titleStyle,
- InputDecoration? searchBoxDecoration,
- TextStyle? searchBoxTextStyle,
- Color? searchBoxIconColor,
- 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,
});