WidgetVerticalPicker<T> constructor
WidgetVerticalPicker<T> ({
- Key? key,
- required VerticalPickerItemBuilder itemBuilder,
- required ValueChanged<
int> onChanged, - required List<
T> data, - int? initIndex = 0,
- HorizontalPickerAroundBuilder? topBuilder,
- HorizontalPickerAroundBuilder? bottomBuilder,
- int itemCountShown = 5,
- double width = 150,
- double height = 150,
- double itemHeight = 150,
- bool haptics = true,
- bool infiniteLoop = false,
- 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;
}