SelectProps<T> constructor
const
SelectProps<T> ({
- required List<
SelectOptionProps< options,T> > - T? value,
- List<
T> ? values, - String placeholder = 'Select...',
- bool disabled = false,
- bool clearable = false,
- bool searchable = false,
- bool multiSelect = false,
- String? label,
- String? helperText,
- String? error,
- ComponentSize size = ComponentSize.md,
- bool required = false,
- String? maxDropdownHeight,
- bool loading = false,
- String loadingText = 'Loading...',
- String emptyMessage = 'No options found',
- String searchPlaceholder = 'Search...',
- SelectDropdownDirection dropdownDirection = SelectDropdownDirection.down,
- bool closeOnSelect = true,
- bool showSelectedCount = true,
- Widget? prefix,
- int? maxSelections,
- bool showCheckboxes = true,
- bool isOpen = false,
- String searchQuery = '',
- List<
SelectOptionProps< filteredOptions = const [],T> > - void onToggle()?,
- void onSelect(
- T value
- void onClear()?,
- void onSearchChange(
- String query
Implementation
const SelectProps({
required this.options,
this.value,
this.values,
this.placeholder = 'Select...',
this.disabled = false,
this.clearable = false,
this.searchable = false,
this.multiSelect = false,
this.label,
this.helperText,
this.error,
this.size = ComponentSize.md,
this.required = false,
this.maxDropdownHeight,
this.loading = false,
this.loadingText = 'Loading...',
this.emptyMessage = 'No options found',
this.searchPlaceholder = 'Search...',
this.dropdownDirection = SelectDropdownDirection.down,
this.closeOnSelect = true,
this.showSelectedCount = true,
this.prefix,
this.maxSelections,
this.showCheckboxes = true,
this.isOpen = false,
this.searchQuery = '',
this.filteredOptions = const [],
this.onToggle,
this.onSelect,
this.onClear,
this.onSearchChange,
});