SearchField constructor

const SearchField({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? hint = 'Search…',
  4. ValueChanged<String>? onChanged,
  5. ValueChanged<String>? onSubmitted,
  6. VoidCallback? onCleared,
  7. bool enabled = true,
  8. bool autofocus = false,
  9. String? label,
  10. double? borderRadius,
  11. Widget? suffixIcon,
  12. FocusNode? focusNode,
})

Implementation

const SearchField({
  super.key,
  this.controller,
  this.hint = 'Search…',
  this.onChanged,
  this.onSubmitted,
  this.onCleared,
  this.enabled = true,
  this.autofocus = false,
  this.label,
  this.borderRadius,
  this.suffixIcon,
  this.focusNode,
});