SearchField constructor

const SearchField({
  1. required SearchHelper searchHelper,
  2. bool autofocus = false,
  3. bool showClearButton = true,
  4. bool searchOnChange = false,
  5. Widget? leading,
  6. double? height,
  7. String? heroTag,
  8. void onFocus()?,
  9. Color? backgroundColor,
  10. Color? foregroundColor,
  11. Color? borderColor,
  12. FocusNode? focusNode,
  13. bool enableSuggestions = false,
  14. bool autocorrect = false,
  15. 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,
});