CountryPickerCupertino constructor

const CountryPickerCupertino({
  1. Key? key,
  2. required ValueChanged<Country> onValuePicked,
  3. ItemBuilder? itemBuilder,
  4. ItemFilter? itemFilter,
  5. Comparator<Country>? sortComparator,
  6. List<Country>? priorityList,
  7. double pickerItemHeight = defaultPickerItemHeight,
  8. double pickerSheetHeight = defaultPickerSheetHeight,
  9. TextStyle? textStyle,
  10. double diameterRatio = _kDefaultDiameterRatio,
  11. Color backgroundColor = _kDefaultBackground,
  12. double offAxisFraction = 0.0,
  13. bool useMagnifier = false,
  14. double magnification = 1.0,
  15. FixedExtentScrollController? scrollController,
  16. Country? initialCountry,
})

Implementation

const CountryPickerCupertino({
  super.key,
  required this.onValuePicked,
  this.itemBuilder,
  this.itemFilter,
  this.sortComparator,
  this.priorityList,
  this.pickerItemHeight = defaultPickerItemHeight,
  this.pickerSheetHeight = defaultPickerSheetHeight,
  this.textStyle,
  this.diameterRatio = _kDefaultDiameterRatio,
  this.backgroundColor = _kDefaultBackground,
  this.offAxisFraction = 0.0,
  this.useMagnifier = false,
  this.magnification = 1.0,
  this.scrollController,
  this.initialCountry,
});