Search constructor

const Search({
  1. String placeholder = 'Search...',
  2. String? value,
  3. void onChanged(
    1. String
    )?,
  4. void onSubmitted(
    1. String
    )?,
  5. List<SearchResult> results = const <SearchResult>[],
  6. bool showDropdown = false,
  7. bool showClear = true,
  8. bool autofocus = false,
  9. bool disabled = false,
  10. Key? key,
})

Implementation

const Search({
  this.placeholder = 'Search...',
  this.value,
  this.onChanged,
  this.onSubmitted,
  this.results = const <SearchResult>[],
  this.showDropdown = false,
  this.showClear = true,
  this.autofocus = false,
  this.disabled = false,
  super.key,
});