WorldPicker constructor

const WorldPicker({
  1. Key? key,
  2. required List<Country> countries,
  3. required double? size,
  4. required ValueChanged<Country> onSelect,
  5. WorldPickerOptions options = const WorldPickerOptions(),
  6. 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,
});