FastSearchBar<T extends FastItem> constructor

const FastSearchBar<T extends FastItem>({
  1. Key? key,
  2. required List<T> items,
  3. String placeholderText = kFastSearchPlaceholderText,
  4. Widget clearSearchIcon = kFastClearSearchIcon,
  5. bool shouldUseFuzzySearch = false,
  6. bool showShowBottomBorder = true,
  7. Widget closeIcon = kFastCloseIcon,
  8. Widget backIcon = kFastBackIcon,
  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 = kFastSearchPlaceholderText,
  this.clearSearchIcon = kFastClearSearchIcon,
  this.shouldUseFuzzySearch = false,
  this.showShowBottomBorder = true,
  this.closeIcon = kFastCloseIcon,
  this.backIcon = kFastBackIcon,
  this.showLeadingIcon = true,
  this.textEditingController,
  this.onLeadingButtonTap,
  this.onSearchFilter,
  this.onSuggestions,
});