CurrencyWorldPicker constructor

const CurrencyWorldPicker({
  1. Key? key,
  2. required List<Currency> currencies,
  3. required double? size,
  4. required ValueChanged<Currency> onSelect,
  5. CurrencyWorldPickerOptions options = const CurrencyWorldPickerOptions(),
  6. ScrollController? scrollController,
})

Creates a new CurrencyWorldPicker 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 CurrencyWorldPicker({
  super.key,
  required this.currencies,
  required this.size,
  required this.onSelect,
  this.options = const CurrencyWorldPickerOptions(),
  this.scrollController,
});