Picker constructor
Picker({
- required PickerAdapter adapter,
- List<
PickerDelimiter> ? delimiter, - List<
int> ? selecteds, - double height = 150.0,
- double itemExtent = 28.0,
- EdgeInsetsGeometry? columnPadding,
- TextStyle? textStyle,
- TextStyle? cancelTextStyle,
- TextStyle? confirmTextStyle,
- TextStyle? selectedTextStyle,
- IconThemeData? selectedIconTheme,
- TextAlign textAlign = TextAlign.start,
- TextScaler? textScaler,
- Widget? title,
- Widget? cancel,
- Widget? confirm,
- String? cancelText,
- String? confirmText,
- Color? backgroundColor,
- Color? containerColor,
- Color? headerColor,
- WidgetBuilder? builderHeader,
- bool changeToFirst = false,
- bool hideHeader = false,
- bool looping = false,
- bool reversedOrder = false,
- Decoration? headerDecoration,
- List<
int> ? columnFlex, - int smooth = 0,
- double magnification = 1.0,
- double diameterRatio = 1.1,
- double squeeze = 1.45,
- Widget selectionOverlay = const CupertinoPickerDefaultSelectionOverlay(),
- PickerItemBuilder? onBuilderItem,
- VoidCallback? onCancel,
- PickerSelectedCallback? onSelect,
- PickerConfirmBeforeCallback? onConfirmBefore,
- PickerConfirmCallback? onConfirm,
- 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.textScaler,
this.title,
this.cancel,
this.confirm,
this.cancelText,
this.confirmText,
this.backgroundColor,
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 ?? <int>[];
}