Picker constructor

Picker({
  1. required PickerAdapter adapter,
  2. List<PickerDelimiter>? delimiter,
  3. List<int>? selecteds,
  4. double height = 150.0,
  5. double itemExtent = 28.0,
  6. EdgeInsetsGeometry? columnPadding,
  7. TextStyle? textStyle,
  8. TextStyle? cancelTextStyle,
  9. TextStyle? confirmTextStyle,
  10. TextStyle? selectedTextStyle,
  11. IconThemeData? selectedIconTheme,
  12. TextAlign textAlign = TextAlign.start,
  13. double? textScaleFactor,
  14. Widget? title,
  15. Widget? cancel,
  16. Widget? confirm,
  17. String? cancelText,
  18. String? confirmText,
  19. Color? backgroundColor = Colors.white,
  20. Color? containerColor,
  21. Color? headerColor,
  22. WidgetBuilder? builderHeader,
  23. dynamic changeToFirst = false,
  24. bool hideHeader = false,
  25. bool looping = false,
  26. bool reversedOrder = false,
  27. Decoration? headerDecoration,
  28. List<int>? columnFlex,
  29. Widget? footer,
  30. int smooth = 0,
  31. double magnification = 1.0,
  32. double diameterRatio = 1.1,
  33. double squeeze = 1.45,
  34. Widget selectionOverlay = const CupertinoPickerDefaultSelectionOverlay(),
  35. PickerItemBuilder? onBuilderItem,
  36. VoidCallback? onCancel,
  37. PickerSelectedCallback? onSelect,
  38. PickerConfirmBeforeCallback? onConfirmBefore,
  39. PickerConfirmCallback? onConfirm,
  40. bool printDebug = false,
})

Implementation

Picker(
    {required this.adapter,
    this.delimiter,
    List<int>? selecteds,
    this.height = 150.0,
    this.itemExtent = 28.0,
    this.columnPadding,
    this.textStyle,
    this.cancelTextStyle,
    this.confirmTextStyle,
    this.selectedTextStyle,
    this.selectedIconTheme,
    this.textAlign = TextAlign.start,
    this.textScaleFactor,
    this.title,
    this.cancel,
    this.confirm,
    this.cancelText,
    this.confirmText,
    this.backgroundColor = Colors.white,
    this.containerColor,
    this.headerColor,
    this.builderHeader,
    this.changeToFirst = false,
    this.hideHeader = false,
    this.looping = false,
    this.reversedOrder = false,
    this.headerDecoration,
    this.columnFlex,
    this.footer,
    this.smooth = 0,
    this.magnification = 1.0,
    this.diameterRatio = 1.1,
    this.squeeze = 1.45,
    this.selectionOverlay = const CupertinoPickerDefaultSelectionOverlay(),
    this.onBuilderItem,
    this.onCancel,
    this.onSelect,
    this.onConfirmBefore,
    this.onConfirm,
    this.printDebug = false}) {
  this.selecteds = selecteds == null ? <int>[] : selecteds;
}