DirectSelect constructor
const
DirectSelect({
- required List<
Widget> items, - required ValueChanged<
int?> onSelectedItemChanged, - required double itemExtent,
- required Widget child,
- int selectedIndex = 0,
- DirectSelectMode mode = DirectSelectMode.drag,
- double itemMagnification = 1.15,
- Color backgroundColor = Colors.white,
- Color selectionColor = Colors.black12,
- Key? key,
Implementation
const DirectSelect({
required this.items,
required this.onSelectedItemChanged,
required this.itemExtent,
required this.child,
this.selectedIndex = 0,
this.mode = DirectSelectMode.drag,
this.itemMagnification = 1.15,
this.backgroundColor = Colors.white,
this.selectionColor = Colors.black12,
Key? key,
}) : assert(items.length > 0),
assert(itemMagnification >= 1.0),
super(key: key);