SingleListPicker constructor

const SingleListPicker({
  1. Key? key,
  2. required int itemCount,
  3. required SelectIndexedWidgetBuilder itemBuilder,
  4. List<int> initialIndex = const [],
  5. double height = kPickerDefaultHeight,
  6. double width = double.infinity,
  7. PickerOptions<List<int>>? options,
  8. SingleListPickerOptions singleListPickerOptions = const SingleListPickerOptions(),
  9. SelectScrollListBuilder? builder,
  10. PickerPositionIndexChanged? onChanged,
})

Implementation

const SingleListPicker({
  super.key,
  required this.itemCount,
  required this.itemBuilder,
  this.initialIndex = const [],
  this.height = kPickerDefaultHeight,
  this.width = double.infinity,
  this.options,
  this.singleListPickerOptions = const SingleListPickerOptions(),
  this.builder,
  this.onChanged,
});