WidgetPicker constructor
WidgetPicker({
- Key? key,
- required List<
String> options, - required String value,
- required ValueChanged<
String> onChanged, - int itemCount = 3,
- double itemHeight = 50,
- double itemWidth = 100,
- Axis axis = Axis.vertical,
- TextStyle? textStyle,
- TextStyle? selectedTextStyle,
- bool haptics = false,
- Decoration? decoration,
- TextMapper? textMapper,
- bool infiniteLoop = false,
Implementation
WidgetPicker({
Key? key,
required this.options,
required this.value,
required this.onChanged,
this.itemCount = 3,
this.itemHeight = 50,
this.itemWidth = 100,
this.axis = Axis.vertical,
this.textStyle,
this.selectedTextStyle,
this.haptics = false,
this.decoration,
this.textMapper,
this.infiniteLoop = false,
}) : assert(options.contains(value)),
super(key: key);