DirectSelect constructor

const DirectSelect({
  1. required List<Widget> items,
  2. required ValueChanged<int?> onSelectedItemChanged,
  3. required double itemExtent,
  4. required Widget child,
  5. int selectedIndex = 0,
  6. DirectSelectMode mode = DirectSelectMode.drag,
  7. double itemMagnification = 1.15,
  8. Color backgroundColor = Colors.white,
  9. Color selectionColor = Colors.black12,
  10. 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);