SingleListWheelPicker constructor
SingleListWheelPicker({
- Key? key,
- int initialIndex = 0,
- required int itemCount,
- required IndexedWidgetBuilder itemBuilder,
- double height = kPickerDefaultHeight,
- double width = double.infinity,
- FixedExtentScrollController? controller,
- PickerOptions<
int> ? options = const PickerOptions<int>(), - SingleListWheelPickerChanged? onChanged,
- WheelOptions? wheelOptions,
Implementation
SingleListWheelPicker({
super.key,
int initialIndex = 0,
required this.itemCount,
required this.itemBuilder,
this.height = kPickerDefaultHeight,
this.width = double.infinity,
FixedExtentScrollController? controller,
super.options = const PickerOptions<int>(),
this.onChanged,
/// Wheel配置信息
WheelOptions? wheelOptions,
}) : controller = controller ??
FixedExtentScrollController(initialItem: initialIndex),
super(wheelOptions: wheelOptions ?? GlobalOptions().wheelOptions);