CountryPickerCupertino constructor
const
CountryPickerCupertino({
- Key? key,
- required ValueChanged<
Country> onValuePicked, - ItemBuilder? itemBuilder,
- ItemFilter? itemFilter,
- Comparator<
Country> ? sortComparator, - List<
Country> ? priorityList, - double pickerItemHeight = defaultPickerItemHeight,
- double pickerSheetHeight = defaultPickerSheetHeight,
- TextStyle? textStyle,
- double diameterRatio = _kDefaultDiameterRatio,
- Color backgroundColor = _kDefaultBackground,
- double offAxisFraction = 0.0,
- bool useMagnifier = false,
- double magnification = 1.0,
- FixedExtentScrollController? scrollController,
- Country? initialCountry,
Implementation
const CountryPickerCupertino({
Key? 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,
}) : super(key: key);