CustomSelect<T> constructor

const CustomSelect<T>({
  1. Key? key,
  2. required List<SelectOption<T>> options,
  3. T? defaultValue,
  4. int visibleOptionCount = 5,
  5. ValueChanged<T>? onChange,
  6. VoidCallback? onCancel,
  7. ValueChanged<T>? onFocus,
  8. T? defaultFocusValue,
  9. SelectLayout layout = SelectLayout.compact,
  10. bool hideIndexes = false,
  11. bool isDisabled = false,
  12. bool disableSelection = false,
  13. String? highlightText,
  14. bool inlineDescriptions = false,
  15. VoidCallback? onUpFromFirstItem,
  16. VoidCallback? onDownFromLastItem,
  17. String? tag,
})

Implementation

const CustomSelect({
  super.key,
  required this.options,
  this.defaultValue,
  this.visibleOptionCount = 5,
  this.onChange,
  this.onCancel,
  this.onFocus,
  this.defaultFocusValue,
  this.layout = SelectLayout.compact,
  this.hideIndexes = false,
  this.isDisabled = false,
  this.disableSelection = false,
  this.highlightText,
  this.inlineDescriptions = false,
  this.onUpFromFirstItem,
  this.onDownFromLastItem,
  this.tag,
});