SearchableDropdown<T extends Searchable> constructor

const SearchableDropdown<T extends Searchable>({
  1. Key? key,
  2. required List<T> items,
  3. required TextEditingController textController,
  4. required Widget itemBuilder(
    1. T
    ),
  5. void onSelect(
    1. T
    )?,
  6. List<T> filter(
    1. String
    )?,
  7. InputDecoration? decoration,
  8. Widget? searchIcon,
  9. String? label,
  10. TextStyle? textStyle,
  11. bool showCloseIconOnResultPanel = false,
  12. bool showTrailingIcon = true,
  13. void onFocusChange(
    1. bool
    )?,
  14. FormFieldValidator<T?>? validator,
  15. Color? backgroundColor,
  16. double? bottomPadding,
  17. double? endPadding,
  18. double? elevation,
  19. double? borderRadius,
  20. double? minHeight,
  21. double? maxHeight,
})

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,
  this.minHeight, this.maxHeight,
  // required this.onSearch,
});