SearchableDropdown<T extends Searchable> constructor
const
SearchableDropdown<T extends Searchable> ({
- Key? key,
- required List<
T> items, - required TextEditingController textController,
- required Widget itemBuilder(
- T
- void onSelect(
- T
- List<
T> filter()?, - InputDecoration? decoration,
- Widget? searchIcon,
- String? label,
- TextStyle? textStyle,
- bool showCloseIconOnResultPanel = false,
- bool showTrailingIcon = true,
- void onFocusChange()?,
- FormFieldValidator<
T?> ? validator, - Color? backgroundColor,
- double? bottomPadding,
- double? endPadding,
- double? elevation,
- double? borderRadius,
Implementation
const SearchableDropdown({super.key,
required this.items, required this.textController,
required this.itemBuilder, this.onSelect, this.filter,
this.decoration, this.searchIcon, this.label, this.textStyle,
this.showCloseIconOnResultPanel=false, this.showTrailingIcon=true,
this.onFocusChange, this.validator, this.backgroundColor,
this.bottomPadding, this.endPadding, this.elevation, this.borderRadius,
// required this.onSearch,
});