NiceSearchBar constructor
const
NiceSearchBar({
- Key? key,
- String? value,
- void onChanged(
- String value
- void onSubmitted(
- String value
- void onClear()?,
- String? placeholder = 'Search...',
- List<
String> ? suggestions, - List<
String> ? recentSearches, - bool showHistory = true,
- bool showSuggestions = true,
- bool autoFocus = false,
- Widget? leading,
- Widget? trailing,
- NiceSearchBarStyle style = NiceSearchBarStyle.filled,
Implementation
const NiceSearchBar({
super.key,
this.value,
this.onChanged,
this.onSubmitted,
this.onClear,
this.placeholder = 'Search...',
this.suggestions,
this.recentSearches,
this.showHistory = true,
this.showSuggestions = true,
this.autoFocus = false,
this.leading,
this.trailing,
this.style = NiceSearchBarStyle.filled,
});