GFSearchBar<T> constructor

const GFSearchBar<T>({
  1. required List<T> searchList,
  2. required QueryListItemBuilder<T> overlaySearchListItemBuilder,
  3. required QueryBuilder<T> searchQueryBuilder,
  4. Key? key,
  5. TextEditingController? controller,
  6. OnItemSelected<T>? onItemSelected,
  7. bool hideSearchBoxWhenItemSelected = false,
  8. double? overlaySearchListHeight,
  9. Widget? noItemsFoundWidget,
  10. InputDecoration? searchBoxInputDecoration,
})

search bar with various customization option

Implementation

const GFSearchBar({
  required this.searchList,
  required this.overlaySearchListItemBuilder,
  required this.searchQueryBuilder,
  Key? key,
  this.controller,
  this.onItemSelected,
  this.hideSearchBoxWhenItemSelected = false,
  this.overlaySearchListHeight,
  this.noItemsFoundWidget,
  this.searchBoxInputDecoration,
}) : super(key: key);