WorldPickerIcon constructor
const
WorldPickerIcon({
- Key? key,
- required ValueChanged<
Country> onSelect, - Country? selectedCountry,
- double? size = 32.0,
- bool showIsoCode = false,
- bool showName = false,
- bool showCurrencyCode = false,
- bool showDialCode = false,
- String defaultCountryIsoCode = 'US',
- WorldPickerOptions options = const WorldPickerOptions(),
- List<
Country> countries = const [],
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 WorldPickerIcon({
super.key,
required this.onSelect,
this.selectedCountry,
this.size = 32.0,
this.showIsoCode = false,
this.showName = false,
this.showCurrencyCode = false,
this.showDialCode = false,
this.defaultCountryIsoCode = 'US',
this.options = const WorldPickerOptions(),
this.countries = const [],
});