SearchProps constructor

const SearchProps({
  1. String placeholder = 'Search...',
  2. String? value,
  3. void onChanged(
    1. String value
    )?,
  4. void onSubmitted(
    1. String value
    )?,
  5. bool showClear = true,
  6. bool showIcon = true,
  7. bool loading = false,
  8. Widget? icon,
  9. bool autofocus = false,
  10. bool disabled = false,
  11. ComponentSize size = ComponentSize.md,
  12. SearchStyle style = SearchStyle.standard,
  13. String? id,
  14. Map<String, String>? attributes,
  15. List<SearchResult>? results,
  16. String? resultsId,
  17. bool showDropdown = false,
  18. String? dropdownMaxHeight,
  19. String? width,
})

Implementation

const SearchProps({
  this.placeholder = 'Search...',
  this.value,
  this.onChanged,
  this.onSubmitted,
  this.showClear = true,
  this.showIcon = true,
  this.loading = false,
  this.icon,
  this.autofocus = false,
  this.disabled = false,
  this.size = ComponentSize.md,
  this.style = SearchStyle.standard,
  this.id,
  this.attributes,
  this.results,
  this.resultsId,
  this.showDropdown = false,
  this.dropdownMaxHeight,
  this.width,
});