CurrencyWorldPickerIcon constructor

const CurrencyWorldPickerIcon({
  1. Key? key,
  2. required ValueChanged<Currency> onSelect,
  3. Currency? selectedCurrency,
  4. double? size = 32.0,
  5. bool showIsoCode = false,
  6. bool showName = false,
  7. bool showCurrencyCode = false,
  8. bool showDialCode = false,
  9. String defaultCountryIsoCode = 'US',
  10. 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(),
});