FastSearchBar<T extends FastItem> constructor
const
FastSearchBar<T extends FastItem> ({
- Key? key,
- 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
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,
});