FastSearchBar<T extends FastItem> constructor
FastSearchBar<T extends FastItem> ({
- required List<
T> items, - String placeholderText = kFastSearchPlaceholderText,
- Widget clearSearchIcon = kFastClearSearchIcon,
- bool shouldUseFuzzySearch = false,
- bool showShowBottomBorder = true,
- Widget closeIcon = kFastCloseIcon,
- Widget backIcon = kFastBackIcon,
- bool showLeadingIcon = true,
- TextEditingController? textEditingController,
- VoidCallback? onLeadingButtonTap,
- bool onSearchFilter(
- T option,
- String? query
- void onSuggestions()?,
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();