CNSearchConfig constructor
const
CNSearchConfig({
- String placeholder = 'Search',
- CNSymbol searchIcon = const CNSymbol('magnifyingglass'),
- bool showsCancelButton = true,
- Duration animationDuration = const Duration(milliseconds: 300),
- double searchBarHeight = 50.0,
- ValueChanged<
String> ? onSearchTextChanged, - ValueChanged<
String> ? onSearchSubmitted, - VoidCallback? onSearchCancelled,
- SearchResultsBuilder? resultsBuilder,
- 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,
});