CNSearchConfig constructor

const CNSearchConfig({
  1. String placeholder = 'Search',
  2. CNSymbol searchIcon = const CNSymbol('magnifyingglass'),
  3. bool showsCancelButton = true,
  4. Duration animationDuration = const Duration(milliseconds: 300),
  5. double searchBarHeight = 50.0,
  6. ValueChanged<String>? onSearchTextChanged,
  7. ValueChanged<String>? onSearchSubmitted,
  8. VoidCallback? onSearchCancelled,
  9. SearchResultsBuilder? resultsBuilder,
  10. bool showResultsOverlay = true,
})

Implementation

const CNSearchConfig({
  this.placeholder = 'Search',
  this.searchIcon = const CNSymbol('magnifyingglass'),
  this.showsCancelButton = true,
  this.animationDuration = const Duration(milliseconds: 300),
  this.searchBarHeight = 50.0,
  this.onSearchTextChanged,
  this.onSearchSubmitted,
  this.onSearchCancelled,
  this.resultsBuilder,
  this.showResultsOverlay = true,
});