CurrencyWorldPicker constructor
const
CurrencyWorldPicker({
- Key? key,
- required List<
Currency> currencies, - required double? size,
- required ValueChanged<
Currency> onSelect, - CurrencyWorldPickerOptions options = const CurrencyWorldPickerOptions(),
- 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,
});