NiceSearchBar constructor

const NiceSearchBar({
  1. Key? key,
  2. String? value,
  3. void onChanged(
    1. String value
    )?,
  4. void onSubmitted(
    1. String value
    )?,
  5. void onClear()?,
  6. String? placeholder = 'Search...',
  7. List<String>? suggestions,
  8. List<String>? recentSearches,
  9. bool showHistory = true,
  10. bool showSuggestions = true,
  11. bool autoFocus = false,
  12. Widget? leading,
  13. Widget? trailing,
  14. 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,
});