FastSearchBar<T extends FastItem> constructor

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

Implementation

FastSearchBar({
  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,
}) : super();