WidgetVerticalPicker<T> constructor

WidgetVerticalPicker<T>({
  1. Key? key,
  2. required VerticalPickerItemBuilder itemBuilder,
  3. required ValueChanged<int> onChanged,
  4. required List<T> data,
  5. int? initIndex = 0,
  6. HorizontalPickerAroundBuilder? topBuilder,
  7. HorizontalPickerAroundBuilder? bottomBuilder,
  8. int itemCountShown = 5,
  9. double width = 150,
  10. double height = 150,
  11. double itemHeight = 150,
  12. bool haptics = true,
  13. bool infiniteLoop = false,
  14. Duration selectedTimeDelay = const Duration(milliseconds: 500),
})

Implementation

WidgetVerticalPicker(
    {Key? key,
    required this.itemBuilder,
    required this.onChanged,
    required this.data,
    int? initIndex = 0,
    this.topBuilder,
    this.bottomBuilder,
    this.itemCountShown = 5,
    this.width = 150,
    this.height = 150,
    this.itemHeight = 150,
    this.haptics = true,
    this.infiniteLoop = false,
    this.selectedTimeDelay = const Duration(milliseconds: 500)})
    : super(key: key) {
  value = initIndex;
}