FastSearchBar<T extends FastItem> constructor

const FastSearchBar<T extends FastItem>({
  1. Key? key,
  2. required List<T> items,
  3. String? placeholderText,
  4. Widget? clearSearchIcon,
  5. bool shouldUseFuzzySearch = false,
  6. bool showShowBottomBorder = true,
  7. Widget? closeIcon,
  8. Widget? backIcon,
  9. bool showLeadingIcon = true,
  10. TextEditingController? textEditingController,
  11. VoidCallback? onLeadingButtonTap,
  12. bool onSearchFilter(
    1. T option,
    2. String? query
    )?,
  13. void onSuggestions(
    1. List<T>? suggestions,
    2. String? query
    )?,
})

Implementation

const FastSearchBar({
  super.key,
  required this.items,
  this.placeholderText,
  this.clearSearchIcon,
  this.shouldUseFuzzySearch = false,
  this.showShowBottomBorder = true,
  this.closeIcon,
  this.backIcon,
  this.showLeadingIcon = true,
  this.textEditingController,
  this.onLeadingButtonTap,
  this.onSearchFilter,
  this.onSuggestions,
});