WorldPicker constructor
const
WorldPicker({
- Key? key,
- required List<
Country> countries, - required double? size,
- required ValueChanged<
Country> onSelect, - WorldPickerOptions options = const WorldPickerOptions(),
- ScrollController? scrollController,
Creates a new WorldPicker widget.
countries
is the list of countries to display.
favoriteCountries
list contains ISO codes of countries to show at the top.
size
determines the flag size.
onSelect
is called when a country is selected.
options
provides display customization.
scrollController
is used for scrolling behavior in a bottom sheet.
Implementation
const WorldPicker({
super.key,
required this.countries,
required this.size,
required this.onSelect,
this.options = const WorldPickerOptions(),
this.scrollController,
});