SearchProps constructor
const
SearchProps({
- String placeholder = 'Search...',
- String? value,
- void onChanged(
- String value
- void onSubmitted(
- String value
- bool showClear = true,
- bool showIcon = true,
- bool loading = false,
- Widget? icon,
- bool autofocus = false,
- bool disabled = false,
- ComponentSize size = ComponentSize.md,
- SearchStyle style = SearchStyle.standard,
- String? id,
- Map<
String, String> ? attributes, - List<
SearchResult> ? results, - String? resultsId,
- bool showDropdown = false,
- String? dropdownMaxHeight,
- 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,
});