SingleListPicker constructor
const
SingleListPicker({
- Key? key,
- required int itemCount,
- required SelectIndexedWidgetBuilder itemBuilder,
- List<
int> initialIndex = const [], - double height = kPickerDefaultHeight,
- double width = double.infinity,
- PickerOptions<
List< ? options,int> > - SingleListPickerOptions singleListPickerOptions = const SingleListPickerOptions(),
- SelectScrollListBuilder? builder,
- 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,
});