TolySelect constructor

const TolySelect({
  1. Key? key,
  2. List<String> data = const [],
  3. required int selectIndex,
  4. required ValueChanged<int> onSelected,
  5. Color disableColor = const Color(0xffcccccc),
  6. double iconSize = 24,
  7. EdgeInsetsGeometry? padding,
  8. EdgeInsetsGeometry? labelPadding,
  9. DropMenuCellStyle? cellStyle,
  10. double height = 30,
  11. double width = 200,
  12. double minWidth = 120,
  13. double fontSize = 14,
  14. double? maxHeight,
  15. bool shrinkWrapWidthOverlay = false,
  16. bool shrinkWidth = false,
  17. MenuMetaBuilder? contentBuilder,
})

Implementation

const TolySelect({
  super.key,
  this.data = const [],
  required this.selectIndex,
  required this.onSelected,
  this.disableColor = const Color(0xffcccccc),
  this.iconSize = 24,
  this.padding,
  this.labelPadding,
  this.cellStyle,
  this.height = 30,
  this.width = 200,
  this.minWidth = 120,
  this.fontSize = 14,
  this.maxHeight,
  this.shrinkWrapWidthOverlay = false,
  this.shrinkWidth = false,
  this.contentBuilder,
});