CurrencyWorldPickerIcon constructor
const
CurrencyWorldPickerIcon({
- Key? key,
- required ValueChanged<
Currency> onSelect, - Currency? selectedCurrency,
- double? size = 32.0,
- bool showIsoCode = false,
- bool showName = false,
- bool showCurrencyCode = false,
- bool showDialCode = false,
- String defaultCountryIsoCode = 'US',
- CurrencyWorldPickerOptions options = const CurrencyWorldPickerOptions(),
Creates a WorldPickerIcon widget.
The onSelect
callback is required and will be called when a user
selects a country from the picker dialog.
Implementation
const CurrencyWorldPickerIcon({
super.key,
required this.onSelect,
this.selectedCurrency,
this.size = 32.0,
this.showIsoCode = false,
this.showName = false,
this.showCurrencyCode = false,
this.showDialCode = false,
this.defaultCountryIsoCode = 'US',
this.options = const CurrencyWorldPickerOptions(),
});