CustomSelect<T> constructor
const
CustomSelect<T> ({
- Key? key,
- required List<
SelectOption< options,T> > - T? defaultValue,
- int visibleOptionCount = 5,
- ValueChanged<
T> ? onChange, - VoidCallback? onCancel,
- ValueChanged<
T> ? onFocus, - T? defaultFocusValue,
- SelectLayout layout = SelectLayout.compact,
- bool hideIndexes = false,
- bool isDisabled = false,
- bool disableSelection = false,
- String? highlightText,
- bool inlineDescriptions = false,
- VoidCallback? onUpFromFirstItem,
- VoidCallback? onDownFromLastItem,
- 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,
});