SearchField constructor
const
SearchField({ - required SearchHelper searchHelper,
- bool autofocus = false,
- bool showClearButton = true,
- bool searchOnChange = false,
- Widget? leading,
- double? height,
- String? heroTag,
- void onFocus()?,
- Color? backgroundColor,
- Color? foregroundColor,
- Color? borderColor,
- FocusNode? focusNode,
- bool enableSuggestions = false,
- bool autocorrect = false,
- TextStyle? hintTextStyle,
})
Implementation
const SearchField({
required this.searchHelper,
this.autofocus = false,
this.showClearButton = true,
this.searchOnChange = false,
this.leading,
this.height,
this.heroTag,
this.onFocus,
this.backgroundColor,
this.foregroundColor,
this.borderColor,
this.focusNode,
this.enableSuggestions = false,
this.autocorrect = false,
this.hintTextStyle,
});